[Scons-users] Calling SCons from Python

Jason Kenny dragon512 at live.com
Fri May 13 13:47:30 EDT 2016


I think most of this is an issue with making SCons a standalone install. As SCons gets working pip support working better this issue will go away.

Jason

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Schleimer, Ben via Scons-users<mailto:scons-users at scons.org>
Sent: Friday, May 13, 2016 12:43 PM
To: SCons users mailing list<mailto:scons-users at scons.org>
Cc: Schleimer, Ben<mailto:bensch128 at yahoo.com>
Subject: Re: [Scons-users] Calling SCons from Python

Hi Andrew,   At the very least, you could call scons via subprocess.
However, I think that standard scons relies on a lot of modifications to the python standard environment.Looking at /usr/bin/scons, it extends sys.path by quite a bit so you can't do a simple "import SCons.Script" and get the scons functionality that you want.

You might want to make the build tool a separate project from your main one and make it an fully scons-based project.

Cheers,Ben


    On Friday, May 13, 2016 9:23 AM, Andrew Pashkin <andrew.pashkin at gmx.co.uk> wrote:



 Hello, everyone!

I want to embed SCons into my project as a web-assets builder (a thing,
that compiles/minifies/compresses CSS and JavaScript) and I wonder if
it's possible to call it from Python. Is such use case even intended by
SCons authors?

--
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - andrew.pashkin at gmx.co.uk

_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160513/b94766b2/attachment.html>
-------------- next part --------------
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users


More information about the Scons-users mailing list