2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-30 20:12:37 +00:00

Don't link Boost.Python to python library, and don't require

<threading>multi for embedding applications.

* libs/python/build/Jamfile.v2: (boost_python): Don't link
  to /python//python. Use /python//python_for_extensions.

* libs/python/test/Jamfile.v2: Remove <threading>multi project
  requirements.
  (py-run): Link to /python//python.
  (exec): Likewise.

* tools/build/v2/tools/python.jam: (pthread): Declare.
  (init-unix): Add 'pthread' to extra-libs.
  (


[SVN r34662]
This commit is contained in:
Vladimir Prus
2006-07-22 07:12:10 +00:00
parent 596e92404a
commit a1e865061c
2 changed files with 8 additions and 5 deletions

View File

@@ -59,7 +59,12 @@ lib boost_python
: # requirements
<link>static:<define>BOOST_PYTHON_STATIC_LIB
<define>BOOST_PYTHON_SOURCE
<library>/python//python
# We don't link to Python library itself. If
# Boost.Python is used for extension, all Python
# symbols are available in Python interpreter.
# If Boost.Python is used for extending, client
# is required to link to /python//python itself.
<use>/python//python_for_extensions
: # default build
<link>shared
: # usage requirements

View File

@@ -2,11 +2,9 @@
use-project /boost/python : ../build ;
project /boost/python/test ;
project : requirements <threading>multi ;
rule py-run ( sources * )
{
return [ run $(sources) /boost/python//boost_python ] ;
return [ run $(sources) /boost/python//boost_python /python//python ] ;
}
rule py-compile ( sources * )
@@ -36,7 +34,7 @@ test-suite python
:
[
run exec.cpp ../build//boost_python/<link>static
run exec.cpp ../build//boost_python/<link>static /python//python
: # program args
: exec.py
: # requirements