From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-06-06 19:10:58
On Mon, Jun 06, 2005 at 10:32:11AM +0400, Vladimir Prus wrote:
> This is absolutely no needed. The users must built bjam with Python support
> enabled and directly use os.popen ;-)
> If the attached two files are placed into 'examples/hello', you can add this
> to Jamroot:
> import capture ;
> ECHO [ capture.output "ls" ] ;
> You'd need up-to-date bjam for this to work -- I've just fixed a minor bug
> affecting Python integration. To enable Python support, look at HAVE_PYTHON
> in jam_src/build.jam. Tested on Linix.
Regarding Python and bjam, is the idea that Python is
an optional component of bjam, or required?
Right now, I just use the "build.sh" script on Unix to build
bjam, and start using it right away.
popen() functionality would be very useful to have in
the core of bjam that is always there, regardless if
you compile it with Python or not.
The main issue I see is that
popen() is not implemented as _popen() Windows:
I don't know if there are any semantic differences between popen()
on Unix and _popen() on Windows.
Why was popen() never implemented in the core of Jam?
While not the prettiest of things, it is useful to sometimes
shell out and execute various commands during a build process.
-- Craig Rodrigues rodrigc_at_[hidden]
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk