Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-10-20 12:36:18


Author: grafik
Date: 2007-10-20 12:36:18 EDT (Sat, 20 Oct 2007)
New Revision: 40216
URL: http://svn.boost.org/trac/boost/changeset/40216

Log:
Do not refer to nonexistent target when python is not configured.
Text files modified:
   trunk/libs/python/test/Jamfile.v2 | 14 +++++++++++---
   1 files changed, 11 insertions(+), 3 deletions(-)

Modified: trunk/libs/python/test/Jamfile.v2
==============================================================================
--- trunk/libs/python/test/Jamfile.v2 (original)
+++ trunk/libs/python/test/Jamfile.v2 2007-10-20 12:36:18 EDT (Sat, 20 Oct 2007)
@@ -2,12 +2,20 @@
 # Software License, Version 1.0. (See accompanying
 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+import python ;
+
 use-project /boost/python : ../build ;
 project /boost/python/test ;
 
+local PY = ;
+if [ python.configured ]
+{
+ PY = /python//python ;
+}
+
 rule py-run ( sources * : input-file ? )
 {
- return [ run $(sources) /boost/python//boost_python /python//python
+ return [ run $(sources) /boost/python//boost_python $(PY)
       : # args
       : $(input-file)
       : #requirements
@@ -39,7 +47,7 @@
   :
 
   [
- run exec.cpp ../build//boost_python/<link>static /python//python
+ run exec.cpp ../build//boost_python/<link>static $(PY)
       : # program args
       : exec.py
       : # requirements
@@ -183,7 +191,7 @@
   :
   :
   : <define>BOOST_PYTHON_STATIC_LIB
- <use>/python//python
+ <use>$(PY)
 
 ]
 


Boost-Commit 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