[Scons-dev] SConstruct processing order

William Deegan bill at baddogconsulting.com
Thu Nov 22 16:47:46 EST 2012


Anatoly,

On Nov 22, 2012, at 7:55 AM, anatoly techtonik <techtonik at gmail.com> wrote:


> Hello,

>

> I am reading http://scons.org/wiki/SconsProcessOverview containing description of how SCons processes SConstruct. I cite it here:

>

> Read SConstruct as a Python script:

> # Default Environment object is created.

> # Tools do their checks and modify the Environment object.

> # Regular Python code is executed as usual.

> # SConscript() calls cause referenced SConscript files to be

> # read/executed immediately.

> # Methods of Environment object are used to update the dependency

> # tree and manipulate SCons state.

>

> Can anybody confirm that it works exactly as described?

> The question I ask is because SCons tries detecting Visual Studio on Windows even if I don't use C++ compiler and SConstruct is empty.


Yes, that's part of the default environment object being created..


>

> Should the Tools do their checks after they are actually used in dependency tree?


By "should" do you mean "the current could will do this", or do you mean "it would be better to change scons to do it this way"?

Hope that helps!
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20121122/d310eaf4/attachment.html>


More information about the Scons-dev mailing list