Boost logo

Boost-Build :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2004-08-09 07:05:43


[Note: This mail has already been sent to c.l.b.u. about a week ago. As
I got no reaction I'm assuming that it has probably been missed. I'm
resending it here because it might be the more appropriate ML anyway.]

Hello,

attached is a patch for pyhton.jam which allows to use python
installation on Unix which have been configured with different prefix
and exec-prefix. Currently this is not supported by boost.build.

The patch simply adds the missing include directory to the compiler
command line as recommended in
http://www.python.org/doc/2.3.4/api/includes.html .

After applying the patch you can either use

bjam -sPYTHON_ROOT=<prefix>

or

bjam -sPYTHON_ROOT=<prefix> -sPYTHON_EXEC_ROOT=<exec prefix>

Markus

 --------------040306080709070007040107 Content-Type: text/plain;
name="patch1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch1"

--- net/src/orig/boost_1_31_0/tools/build/v1/python.jam 2004-01-28 23:52:25.000000000 +0100
+++ local/src/boost_1_31_0/tools/build/v1/python.jam 2004-07-28 16:15:37.000000000 +0200
@@ -118,7 +118,7 @@
{
PYTHON_ROOT ?= /usr/local ;
PYTHON_ROOT = $(PYTHON_ROOT:J=" ") ;
- PYTHON_INCLUDES ?= $(PYTHON_ROOT)/include/python$(PYTHON_VERSION) ;
+ PYTHON_INCLUDES ?= $(PYTHON_ROOT)/include/python$(PYTHON_VERSION) $(PYTHON_EXEC_ROOT)/include/python$(PYTHON_VERSION) ;
PYTHON_LIB_PATH ?= $(PYTHON_ROOT)/lib/python$(PYTHON_VERSION)/config ;

PYTHON_PROPERTIES ?=

 --------------040306080709070007040107--


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