Boost logo

Boost-Build :

From: William Marié (william.marie_at_[hidden])
Date: 2008-07-11 13:23:21


Hi,

I would like to use my own compiled python.exe but there is something i
don't understand, i did like in the doc :

using python : 2.5 : c:/temp/python_d.exe
                                : $(kenginPath)/libs/Python/include $(kenginPath)/libs/Python/PC
                                : $(kenginPath)/libs/Python/lib/windows
                                : <target-os>windows <toolset>msvc <python-debugging>on <variant>debug ;

When i build an extension with the --debug-configuration argument i can see
that :

notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.5"
notice: [python-cfg] user-specified cmd-or-prefix: "c:/temp/python_d.exe"
notice: [python-cfg] user-specified includes: "C:\Documents and
Settings\William Marie\Home\source\trunk/libs/Python/include" "C:\Documents
and Settings\William Marie\Home\source\trunk/libs/Python/PC"
notice: [python-cfg] user-specified libraries: "C:\Documents and
Settings\William Marie\Home\source\trunk/libs/Python/lib/windows"
notice: [python-cfg] user-specified condition: "<target-os>windows"
"<toolset>msvc" "<python-debugging>on" "<variant>debug"
notice: [python-cfg] Checking interpreter command "c:/temp/python_d.exe"...
notice: [python-cfg] running command 'DIR /-C /A:S c:\Temp\python_d.exe
2>&1'
notice: [python-cfg] running command 'c:/temp/python_d.exe -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:/temp/python_d.exe"
notice: [python-cfg] include path: "C:\Documents and Settings\William
Marie\Home\source\trunk/libs/Python/include" "C:\Documents and
Settings\William Marie\Home\source\trunk/libs/Python/PC"
notice: [python-cfg] library path: "C:\Documents and Settings\William
Marie\Home\source\trunk/libs/Python/lib/windows"
notice: [python-cfg] DLL search path: "<empty>"

where i can see that everything is correctly set for boost python but here
it is, the capture-output rule ( for the python extension test ) runs that :

capture-output
build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext

    set Path=C:\Documents and Settings\William
Marie\Home\source\trunk\libs\Python\lib\windows;C:\Documents and
Settings\William
Marie\Home\source\trunk\libs\boost\bin.v2\libs\python\build\msvc-8.0\debug\python-debugging-on\threading-multi;C:\Documents
and Settings\William
Marie\Home\source\trunk\test\__testscript__\build\msvc-8.0\debug\python-debugging-on\threading-multi;%Path%

    set PYTHONPATH=build\msvc-8.0\debug\python-debugging-on\threading-multi
 c:/temp/python_d.exe python "src\extensions\test_sea.py" >
"build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext.output"
2>&1
    set status=%ERRORLEVEL%
    echo. >>
"build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext.output"
    echo EXIT STATUS: %status% >>
"build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext.output"
    if %status% EQU 0 (
        copy
"build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext.output"
"build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext"
    )
    set verbose=0
    if %status% NEQ 0 (
        set verbose=1
    )
    if %verbose% EQU 1 (
        echo ====== BEGIN OUTPUT ======
        type
"build\testsea_ext.test\msvc-8.0\debug\python-debugging-on\threading-multi\testsea_ext.output"
        echo ====== END OUTPUT ======
    )
    exit %status%

which obviously is not going to work because of : c:/temp/python_d.exe
python "src\extensions\test_sea.py

so the error message is :

c:/temp/python_d.exe: can't open file 'python': [Errno 2] No such file or
directory

which is normal because "python" is not a python file.

So finally my question is : why this "python" is inserted in the command, i
tried to have a look in the python.jam but i didn't find out.

Thanks :)

-- 
View this message in context: http://www.nabble.com/Boost-Python-%3A-Using-Python-interpreter-without-installing-it-tp18408799p18408799.html
Sent from the Boost - Build mailing list archive at Nabble.com.

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