File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,20 @@ if ! [ python.configured ] && ! ( --without-python in [ modules.peek : ARGV ] )
1414 # Attempt default configuration of python
1515 import toolset : using ;
1616 using python ;
17-
18- if ! [ python.configured ]
19- {
20- ECHO "WARNING: No python installation configured and autoconfiguration" ;
21- ECHO " failed. See http://www.boost.org/libs/python/doc/building.html" ;
22- ECHO " for configuration instructions or pass --without-python to" ;
23- ECHO " suppress this message and silently skip all Boost.Python targets" ;
24- }
17+ }
18+
19+ if [ python.configured ] || ( --without-python in [ modules.peek : ARGV ] )
20+ {
21+ alias config-warning ;
22+ }
23+ else
24+ {
25+ message config-warning
26+ : "warning: No python installation configured and autoconfiguration"
27+ : "note: failed. See http://www.boost.org/libs/python/doc/building.html"
28+ : "note: for configuration instructions or pass --without-python to"
29+ : "note: suppress this message and silently skip all Boost.Python targets"
30+ ;
2531}
2632
2733rule find-py3-version
@@ -122,6 +128,7 @@ rule lib_boost_python ( is-py3 ? )
122128 # as it's not possible anyway, and to cause dependents to
123129 # fail to build
124130 [ unless [ python.configured ] : <build>no ]
131+ <dependency>config-warning
125132
126133 <python-debugging>on:<define>BOOST_DEBUG_PYTHON
127134 [ cond $(is-py3) : <python>$(py3-version) ]
You can’t perform that action at this time.
0 commit comments