Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-11-07 04:53:55


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi !

I'm trying to get my automated boost update running without errors and
found that V2 Jamfile for boost.python does not find my python
installation.
Configuration: SuSE 8.2

Python is installed to /usr .
Headers are in /usr/include/python2.2 (for 2.2)
and in /usr/include/python2.1 (for 2.1, of course. mmh, why did YaST
install this ?)
So I had to make some changes to Jamfile.v2 (see patch attached).
V1 has some magic [check-python-config] which autodetects my manual
changes. It seems V2 need a similar mechanism to detect python version.

Volodya, it seems that my problem with "/usr/include" appearing on gcc
command line is the usage of boost, which gets includes from
boost.python usage-requirement. Thats okay.

The patch contains some spelling fixes.
Please note the echo-statement on line 10 of Jamfile.v2.
I changed this to echo "PYTHON_PATH" instead of "XXX" but think that
this is a debug aid and should be removed.

Yours,

Jürgen

- --
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/q2uzljbJ/LLrxrYRAsI4AKDe7lVw1inWsEGBunaW1P5jteC4QgCbBjI4
y4hIv1EnS3iUjKVP3vgax8Q=
=PkMa
-----END PGP SIGNATURE-----
 --Boundary-00=_zu2q/uwAb+aG7z+ Content-Type: text/x-diff;
charset="iso-8859-15";
name="Jamfile.v2.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Jamfile.v2.diff"

Index: libs/python/build/Jamfile.v2
=================================RCS file: /cvsroot/boost/boost/libs/python/build/Jamfile.v2,v
retrieving revision 1.6
diff -u -3 -p -r1.6 Jamfile.v2
--- libs/python/build/Jamfile.v2 8 Sep 2003 17:38:47 -0000 1.6
+++ libs/python/build/Jamfile.v2 7 Nov 2003 09:43:25 -0000
@@ -1,11 +1,11 @@
import os ;
import modules ;

-# Use a very crude way to sense there python is locatted
+# Use a very crude way to sense where python is located

local PYTHON_PATH = [ modules.peek : PYTHON_PATH ] ;
-ECHO "XXX" $(PYTHON_PATH) ;
+ECHO "PYTHON_PATH" $(PYTHON_PATH) ;

if [ GLOB /usr/local/include/python2.2 : * ]
{
@@ -27,7 +27,7 @@ if [ os.name ] in CYGWIN NT
}
else
{
- lib python : : <name>python2.2 ;
+ lib python : : <name>python2.2 <search>$(PYTHON_PATH)/lib/python2.2/config ;
PYTHON_LIB = python ;
}

@@ -38,12 +38,12 @@ if $(PYTHON_PATH) {

project boost/python
: source-location ../src
- : requirements <include>$(PYTHON_PATH)/include
+ : requirements <include>$(PYTHON_PATH)/include/python2.2
$(lib_condition)<library-path>$(PYTHON_PATH)/libs
<link>shared:<library>$(PYTHON_LIB)
<define>$(defines)
: usage-requirements # requirement that will be propageted to *users* of this library
- <include>$(PYTHON_PATH)/include
+ <include>$(PYTHON_PATH)/include/python2.2

# We have a bug which causes us to conclude that conditionalized
# properties in this section are not free.
 --Boundary-00=_zu2q/uwAb+aG7z+--


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