Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72244 - sandbox/numpy/libs/python/numpy/src
From: ankitdaf_at_[hidden]
Date: 2011-05-28 08:52:30


Author: ankitdaf
Date: 2011-05-28 08:52:29 EDT (Sat, 28 May 2011)
New Revision: 72244
URL: http://svn.boost.org/trac/boost/changeset/72244

Log:
New addition to support boost.build
Added:
   sandbox/numpy/libs/python/numpy/src/Jamfile (contents, props changed)

Added: sandbox/numpy/libs/python/numpy/src/Jamfile
==============================================================================
--- (empty file)
+++ sandbox/numpy/libs/python/numpy/src/Jamfile 2011-05-28 08:52:29 EDT (Sat, 28 May 2011)
@@ -0,0 +1,61 @@
+import os ;
+import indirect ;
+import modules ;
+import feature ;
+import python ;
+
+using python ;
+
+libraries = ;
+
+local rule probe ( python-cmd )
+{
+ local full-cmd =
+ $(python-cmd)" -c \"from numpy.distutils import misc_util; print misc_util.get_numpy_include_dirs()" ;
+
+ local output = [ shell-cmd $(full-cmd) ] ;
+ return $(output) ;
+}
+
+
+
+if [ python.configured ]
+{
+
+project boost/numpy
+ : source-location .
+# : requirements
+ ;
+
+lib boost_python ;
+
+lib boost_numpy
+ : # sources
+ dtype.cpp
+ scalars.cpp
+ ndarray.cpp
+ matrix.cpp
+ ufunc.cpp
+ numpy.cpp
+ : # requirements
+ <library>/python//python_for_extensions
+ #<library>/boost/python//boost_python
+ <library>boost_python
+ : # default build
+ <link>shared
+ ;
+
+libraries += boost_numpy ;
+
+}
+else if ! ( --without-python in [ modules.peek : ARGV ] )
+{
+ message boost_numpy
+ : "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.NumPy targets"
+ ;
+}
+
+#boost-install $(libraries) ;


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