Re: Can SCons be called from a wrapper script?
Mats Wichmann <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
On 3/15/19 11:20 AM, Bill Deegan wrote: > Don, > > You can have SCons read the sconstruct from stdin. > So you could subprocess.popen and pass your script that way, then just > have it wait til the process is complete. > > Currently importing and calling SCons via python directly is not a > supported use model. > It has come up maybe once a year as a request, but no one has stepped > forward to do the work. > If you'd like to come up with a PR and/or fund such development that's > the most likely way this would come to fruition. It's possibly (or not) worth noting that the scons end-to-end tests do something like this - but they have the help of the test framework in making it work. Just for grins, here's a test that writes an SConstruct and then kicks off a run (test.run is what makes it go). https://github.com/SCons/scons/blob/master/test/ENV.py _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users