Update of /cvsroot/boost/boost/libs/python/build
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27896/libs/python/build

Modified Files:
      Tag: RC_1_34_0
        Jamfile.v2 
Log Message:
Relieve need to explicitly configure Python


Index: Jamfile.v2
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/build/Jamfile.v2,v
retrieving revision 1.11.2.7
retrieving revision 1.11.2.8
diff -u -d -r1.11.2.7 -r1.11.2.8
--- Jamfile.v2  2 Apr 2007 00:51:15 -0000       1.11.2.7
+++ Jamfile.v2  6 Apr 2007 18:17:43 -0000       1.11.2.8
@@ -7,8 +7,22 @@
 
 import python ;
 
-if [ python.configured ] {
+if ! [ python.configured ] && ! ( --without-python in  [ modules.peek : ARGV ] 
)
+{
+    # 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 ] {
 
 project boost/python
     : source-location ../src


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to