|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62895 - trunk/libs/python/build
From: steven_at_[hidden]
Date: 2010-06-13 00:00:11
Author: steven_watanabe
Date: 2010-06-13 00:00:10 EDT (Sun, 13 Jun 2010)
New Revision: 62895
URL: http://svn.boost.org/trac/boost/changeset/62895
Log:
Delay the warning that the Boost.Python Jamfile emits, until someone actually tries to use the library. Fixes #2417.
Text files modified:
trunk/libs/python/build/Jamfile.v2 | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
Modified: trunk/libs/python/build/Jamfile.v2
==============================================================================
--- trunk/libs/python/build/Jamfile.v2 (original)
+++ trunk/libs/python/build/Jamfile.v2 2010-06-13 00:00:10 EDT (Sun, 13 Jun 2010)
@@ -14,14 +14,20 @@
# Attempt default configuration of python
import toolset : using ;
using python ;
-
- if ! [ python.configured ]
- {
- ECHO "WARNING: No python installation configured and autoconfiguration" ;
- ECHO " failed. See http://www.boost.org/libs/python/doc/building.html" ;
- ECHO " for configuration instructions or pass --without-python to" ;
- ECHO " suppress this message and silently skip all Boost.Python targets" ;
- }
+}
+
+if [ python.configured ] || ( --without-python in [ modules.peek : ARGV ] )
+{
+ alias config-warning ;
+}
+else
+{
+ message config-warning
+ : "warning: No python installation configured and autoconfiguration"
+ : "note: failed. See http://www.boost.org/libs/python/doc/building.html"
+ : "note: for configuration instructions or pass --without-python to"
+ : "note: suppress this message and silently skip all Boost.Python targets"
+ ;
}
rule find-py3-version
@@ -122,6 +128,7 @@
# as it's not possible anyway, and to cause dependents to
# fail to build
[ unless [ python.configured ] : <build>no ]
+ <dependency>config-warning
<python-debugging>on:<define>BOOST_DEBUG_PYTHON
[ cond $(is-py3) : <python>$(py3-version) ]
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