Boost logo

Boost-Build :

Subject: Re: [Boost-build] Getting bjam to build with python in windows
From: Mats Carlsson (m.mcaber_at_[hidden])
Date: 2009-09-29 11:05:13


Ok, I tried with python 2.6. It seems to work better, bjam finds
python (I think):
notice: [python-cfg] Configuring python...
notice: [python-cfg] Registry indicates Python 2.6 installed at "C:\Python26\"
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S
"C:\Python31\python.exe" 2>&1'
notice: [python-cfg] running command '"python" -c "from sys import *;
print 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
% (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "C:\Python26\python"...
notice: [python-cfg] running command 'DIR /-C /A:S
"C:\Python26\python.exe" 2>&1'
notice: [python-cfg] running command '"C:\Python26\python" -c "from
sys import *; print 'version=%d.
%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
(version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "C:\Python26\python"
notice: [python-cfg] include path: "C:\Python26\Include"
notice: [python-cfg] library path: "C:\Python26\libs"
notice: [python-cfg] DLL search path: "C:\Python26"

But I get some other problems. It seems that the command "cl" is not
found so I get a lot of "...failed compiled-c-c++ ..."

/Mats

2009/9/29 Vladimir Prus <vladimir_at_[hidden]>:
> Mats Carlsson wrote:
>
>> Hi!
>>
>> I'm trying to run bjam using this command:
>> bjam --with-system --with-thread --with-date_time --with-regex
>> --with-serialization stage
>>
>> I get a message that tells me that bjam can not find python:
>> WARNING: No python installation configured and autoconfiguration
>>          failed.  See http://www.boost.org/libs/python/doc/building.html
>>          for configuration instructions or pass --without-python to
>>          suppress this message and silently skip all Boost.Python targets
>>
>> When running:
>> bjam --debug-configuration
>>
>> I get:
>> notice: [python-cfg] Configuring python...
>> notice: [python-cfg] Checking interpreter command "python"...
>> notice: [python-cfg] running command 'DIR /-C /A:S
>> "C:\Python31\python.exe" 2>&1'
>> notice: [python-cfg] running command '"python" -c "from sys import *;
>> print 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
>> % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
>> 2>&1'
>> notice: [python-cfg] ...does not invoke a working interpreter
>> notice: [python-cfg] No working Python interpreter found.
>> notice: [python-cfg] running command 'DIR /-C /A:S
>> "C:\Python31\python.exe" 2>&1'
>> notice: [python-cfg] falling back to "python"
>> notice: [python-cfg] Details of this Python configuration:
>> notice: [python-cfg]   interpreter command: "python"
>> notice: [python-cfg]   include path: "Include"
>> notice: [python-cfg]   library path: "\libs"
>> notice: [python-cfg]   DLL search path: "<empty>"
>>
>> It seems to find python (C:\Python31\python.exe), but I guess it
>> should use pythonw.exe instead of python.exe.
>
> Matt,
>
> Boost 1.40 is not supposed to work with Python 3.* at all -- neither
> configuration code, nor Boost.Python codebase is going to work.
>
>
> Please either try 2.* or use SVN trunk -- which had Python 3.* support
> merged.
>
> - Volodya
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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