2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

Do not refer to nonexistent target when python is not configured.

[SVN r40216]
This commit is contained in:
Rene Rivera
2007-10-20 16:36:18 +00:00
parent f005518686
commit 512b30c971

View File

@@ -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 @@ test-suite python
:
[
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 @@ bpl-test crossmod_opaque
:
:
: <define>BOOST_PYTHON_STATIC_LIB
<use>/python//python
<use>$(PY)
]