Re: [scons-devel] auto-configuration plans

Anthony Roach <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
David Snopek wrote:

>Bram Moolenaar said:
>  
>
>>I just thought of another use of the configure module, if it is made to
>>work in a generic way: from distutils.
>>    
>>
>
>Ok, this is the last I am going to say on this subject because if you're
>going to do the work then that's your business.  But since the SCons build
>engine is already a module, there is nothing stopping you from using the
>existing configure code from your setup.py.  
>
This is a really good point. Bram could just take SConf as it is today, 
and write a thin wrapper to adapt it to AAP (i.e. take the construction 
environment variables and copy them to AAP variable space), and be done 
with it.

>Just install SCons into your
>site-packages do something like:
>
>from SCons.Environment import Environment
>from SCons.SConf import SConf as Configure
>
>env = Environment()
>sconf = Configure(env)
>
># just an example
>if sconf.CheckLib('SDL', 'SDL_Init'):
>    print "We have SDL!"
>
>sconf.Finish()
>
So, we've already got a stand-alone configure script. Stand-alone in the 
sense that the user doesn't have to build his software with SCons and 
can use whatever build tool he wants. I guess something like this could 
be used to generate AAP recipes rather than somehow embedding SConf in 
AAP itself.




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.