[Scons-users] DefaultEnvironment (was Re: StaticLibrary builder)

Russel Winder russel at winder.org.uk
Thu Aug 9 09:28:32 EDT 2012


On Wed, 2012-08-08 at 22:15 -0400, Greg Ward wrote:

> On 08 August 2012, Bill Deegan said:

> > As an aside, I'd like to get rid of DefaultEnvironment entirely.

>

> Really? My SConstruct does this

>

> env = DefaultEnvironment(

> ...vars...

> )

>

> and then every SConscript starts with

>

> env = DefaultEnvironment()

>

> or

>

> env = DefaultEnvironment().Clone()

>

> and it all works great. Should I be using Import() and Export() instead?


I use Export, Import and Return to make SConscripts usable as functions,
seems to work well.


> (I really dislike Import() and export() on aesthetic grounds, because

> they conflate names and strings. Yuck.)


All name are but string keys in dictionaries in Python, so I have
problem with the Export/Import/Return mechanism.

--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20120809/93c913c0/attachment.pgp>


More information about the Scons-users mailing list