Boost logo

Boost-Build :

From: Andre Hentz (gclbb-jamboost_at_[hidden])
Date: 2003-04-04 14:43:27

Hi Vladimir.
On Fri, 4 Apr 2003, Vladimir Prus wrote:

> The switch from passing strings to passing lists was done just a few days ago
> with a patch from Andre Hentz. Seems that Popen3 class accepts lists, but
> popen3 function does not. Andre, what's the best way to address this?
> For now, I've just comitted the attached patch.
> The Python version is:
> H:\Work\boost\tools\build-cvs\test>\Program Files\Python22\python.exe"
> Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.

Python seems to works differently under cygwin. The version I have is

Python 2.2.2 (#1, Mar 9 2003, 08:18:26)
[GCC 3.2 20020927 (prerelease)] on cygwin

os.popen3 does accept lists as arguments and I noticed that for unix
(cygwin included) os.popen3 is implemented in terms of popen2.Popen3. I
installed the windows version and notice the problem you describe.

I believe the patch you committed is a good solution but I'm no expert in
win32 programming (I just happen to be trapped here!). The alternative
solution is to revert the patches and escape the command line properly for
cygwin. I want to understand why AttributeError is being raised so I'll
take a look at it later today.

I'm running the tests now and they seem to work (minus some problems) in
both platforms (win32 and cygwin).


Andre Hentz


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at