Re: [scons-devel] auto-configuration plans

"David Snopek" <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
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.  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()

Thank you.
  -- David Snopek

Satellite Computing Solutions, LLC


-------------------------------------------------------
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.