Problem compiling boost::python : Script seems to require version 2.2 of python.

Hello, I'm trying to build boost::python on my windows box, but I encounter some problems in the build process. First, some info about my versions : * I'm using the draft tarballs of the long expected version 1.32 that can be found on http://www.meta-comm.com/engineering/boost/200411020208/boost_1_32_0.zip * I have a pyton 2.4 installed on my computer I'm using bjam --v2 to build boost. First problem I had was that the doc specified to set the PYTHON_ROOT variable to my python installation path, but it looks like the script look for a PYTHON_PATH variable. Either the scripts of the documentation should be corrected. Second problem, even if the doc claims that the variable PYTHON_VERSION can be set to any version at least 2.2, in tha script, I can see what looks to me (I'm totally new to bjam) like an hard-coded value :
# Declare a target for the python interpreter library lib python : : <name>python22 <search>$(PYTHON_PATH)/libs ; PYTHON_LIB = python ;
Best regards, -- Loïc -- Disclaimer ------------------------------------ Ce message ainsi que les eventuelles pieces jointes constituent une correspondance privee et confidentielle a l'attention exclusive du destinataire designe ci-dessus. Si vous n'etes pas le destinataire du present message ou une personne susceptible de pouvoir le lui delivrer, il vous est signifie que toute divulgation, distribution ou copie de cette transmission est strictement interdite. Si vous avez recu ce message par erreur, nous vous remercions d'en informer l'expediteur par telephone ou de lui retourner le present message, puis d'effacer immediatement ce message de votre systeme. *** This e-mail and any attachments is a confidential correspondence intended only for use of the individual or entity named above. If you are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by phone or by replying this message, and then delete this message from your system.

JOLY Loic <loic.joly <at> renault.com> writes:
First problem I had was that the doc specified to set the PYTHON_ROOT variable to my python installation path, but it looks like the script look for a PYTHON_PATH variable. Either the scripts of the documentation should be corrected.
The Jamfiles and the documentation are both correct AFAIK.
Second problem, even if the doc claims that the variable PYTHON_VERSION can be set to any version at least 2.2, in tha script, I can see what looks to me (I'm totally new to bjam) like an hard-coded value :
What script are you referring to? This looks like it's supposed to be a Jamfile somewhere. Can you specify the exact paths please? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

David Abrahams wrote:
JOLY Loic <loic.joly <at> renault.com> writes:
First problem I had was that the doc specified to set the PYTHON_ROOT variable to my python installation path, but it looks like the script look for a PYTHON_PATH variable. Either the scripts of the documentation should be corrected.
The Jamfiles and the documentation are both correct AFAIK.
A reference to PYTHON_PATH can be found in the same jamfile as below. What I know is that when I defined a PYTHON_PATH variable, it started to compile the python project, whereas with a PYTHON_ROOT, the project was skipped.
Second problem, even if the doc claims that the variable PYTHON_VERSION can be set to any version at least 2.2, in tha script, I can see what looks to me (I'm totally new to bjam) like an hard-coded value :
What script are you referring to? This looks like it's supposed to be a Jamfile somewhere. Can you specify the exact paths please?
Yes, by script I meant jamfile. It is the file : boost_1_32_0\libs\python\build\Jamfile.v2 Best regards, -- Loïc Joly -- Disclaimer ------------------------------------ Ce message ainsi que les eventuelles pieces jointes constituent une correspondance privee et confidentielle a l'attention exclusive du destinataire designe ci-dessus. Si vous n'etes pas le destinataire du present message ou une personne susceptible de pouvoir le lui delivrer, il vous est signifie que toute divulgation, distribution ou copie de cette transmission est strictement interdite. Si vous avez recu ce message par erreur, nous vous remercions d'en informer l'expediteur par telephone ou de lui retourner le present message, puis d'effacer immediatement ce message de votre systeme. *** This e-mail and any attachments is a confidential correspondence intended only for use of the individual or entity named above. If you are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by phone or by replying this message, and then delete this message from your system.

JOLY Loic <loic.joly <at> renault.com> writes:
What script are you referring to? This looks like it's supposed to be a Jamfile somewhere. Can you specify the exact paths please?
Yes, by script I meant jamfile. It is the file : boost_1_32_0\libs\python\build\Jamfile.v2
That is the Boost.Build v2 Jamfile. Boost.Build v1 is the official release; v2 is pre-release. Unless you are running bjam with "--v2" you can ignore that file. If you are using v2 intentionally, I can't help you because it's not supported. Sorry, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Hi JOLY,
I'm trying to build boost::python on my windows box, but I encounter some problems in the build process. First, some info about my versions :
* I'm using the draft tarballs of the long expected version 1.32 that can be found on http://www.meta-comm.com/engineering/boost/200411020208/boost_1_32_0.zip
* I have a pyton 2.4 installed on my computer
I'm using bjam --v2 to build boost.
First problem I had was that the doc specified to set the PYTHON_ROOT variable to my python installation path, but it looks like the script look for a PYTHON_PATH variable. Either the scripts of the documentation should be corrected.
Second problem, even if the doc claims that the variable PYTHON_VERSION can be set to any version at least 2.2, in tha script, I can see what looks to me (I'm totally new to bjam) like an hard-coded value :
# Declare a target for the python interpreter library lib python : : <name>python22 <search>$(PYTHON_PATH)/libs ; PYTHON_LIB = python ;
The primary problem is that Boost.Build V2 does not has good support for Boost.Python. So for now you can try to change that "python22" to "python24". This is going to change in very near future, I'm already have the beginning of the proper support. However, I'm afraid it won't appear in 1.32. - Volodya

Vladimir Prus wrote:
The primary problem is that Boost.Build V2 does not has good support for Boost.Python. So for now you can try to change that "python22" to "python24".
This is going to change in very near future, I'm already have the beginning of the proper support. However, I'm afraid it won't appear in 1.32.
Ok, thank you for the information. I finally installed version 2.2 of python and it compiled. Would you advise me to compile boost with the version 1 of the build system ? Bers regards, -- Loïc -- Disclaimer ------------------------------------ Ce message ainsi que les eventuelles pieces jointes constituent une correspondance privee et confidentielle a l'attention exclusive du destinataire designe ci-dessus. Si vous n'etes pas le destinataire du present message ou une personne susceptible de pouvoir le lui delivrer, il vous est signifie que toute divulgation, distribution ou copie de cette transmission est strictement interdite. Si vous avez recu ce message par erreur, nous vous remercions d'en informer l'expediteur par telephone ou de lui retourner le present message, puis d'effacer immediatement ce message de votre systeme. *** This e-mail and any attachments is a confidential correspondence intended only for use of the individual or entity named above. If you are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by phone or by replying this message, and then delete this message from your system.

JOLY Loic wrote:
Vladimir Prus wrote:
The primary problem is that Boost.Build V2 does not has good support for Boost.Python. So for now you can try to change that "python22" to "python24".
This is going to change in very near future, I'm already have the beginning of the proper support. However, I'm afraid it won't appear in 1.32.
Ok, thank you for the information.
I finally installed version 2.2 of python and it compiled. Would you advise me to compile boost with the version 1 of the build system ?
There are two limitations of V2 at the moment: - Boost.Python - It can't do "install" that V1 does (creating various versions of libraries with name which indicate build options). So, if you want to just build Boost, using V1 is the official solution. Except for the above issue, V2 is perfectly usable, though. - Volodya
participants (3)
-
David Abrahams
-
JOLY Loic
-
Vladimir Prus