@@ -12,21 +12,6 @@ if [ python.configured ] {
1212
1313project boost/python
1414 : source-location ../src
15- : requirements
16- #<include>$(PYTHON_PATH)/include
17- # $(lib_condition)<library-path>$(PYTHON_PATH)/libs
18- # <link>shared:<library>$(PYTHON_LIB)
19- # <define>$(defines)
20- #: usage-requirements # requirement that will be propageted to *users* of this library
21- # <include>$(PYTHON_PATH)/include
22-
23- # We have a bug which causes us to conclude that conditionalized
24- # properties in this section are not free.
25- # $(lib_condition)<library-path>$(PYTHON_PATH)/lib/python2.2/config
26- # <shared>true:<find-library>$(PYTHON_LIB)
27-
28- # <library-path>$(PYTHON_PATH)/lib/python2.2/config
29- # <library>$(PYTHON_LIB)
3015 ;
3116
3217lib boost_python
@@ -63,16 +48,21 @@ lib boost_python
6348 : # requirements
6449 <link>static:<define>BOOST_PYTHON_STATIC_LIB
6550 <define>BOOST_PYTHON_SOURCE
66- # On Linux, we don't link to Python library itself. If
67- # Boost.Python is used for extension, all Python
68- # symbols are available in Python interpreter.
69- # If Boost.Python is used for extending, client
70- # is required to link to /python//python itself.
71- # On Windows, all code using Python has to link
72- # to python import library. The 'python_for_extension'
73- # is the target that's setup to provide either just
74- # include paths, or import library.
51+
52+ # On Windows, all code using Python has to link to the Python
53+ # import library.
54+ #
55+ # On *nix we never link libboost_python to libpython. When
56+ # extending Python, all Python symbols are provided by the
57+ # Python interpreter executable. When embedding Python, the
58+ # client executable is expected to explicitly link to
59+ # /python//python (the target representing libpython) itself.
60+ #
61+ # python_for_extensions is a target defined by Boost.Build to
62+ # provide the Python include paths, and on Windows, the Python
63+ # import library, as usage requirements.
7564 <library>/python//python_for_extensions
65+
7666 : # default build
7767 <link>shared
7868 : # usage requirements
0 commit comments