|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72267 - sandbox/numpy
From: ankitdaf_at_[hidden]
Date: 2011-05-29 14:39:07
Author: ankitdaf
Date: 2011-05-29 14:39:06 EDT (Sun, 29 May 2011)
New Revision: 72267
URL: http://svn.boost.org/trac/boost/changeset/72267
Log:
First build of numpy.jam module to check for the location of the numpy build directory
Added:
sandbox/numpy/numpy.jam (contents, props changed)
Added: sandbox/numpy/numpy.jam
==============================================================================
--- (empty file)
+++ sandbox/numpy/numpy.jam 2011-05-29 14:39:06 EDT (Sun, 29 May 2011)
@@ -0,0 +1,18 @@
+import testing ;
+import python ;
+
+rule numpy-test ( name : sources * : requirements * )
+{
+ sources ?= $(name).py $(name)_mod.cpp ;
+ return [ testing.make-test run-pyd : $(sources) /boost/numpy//boost_numpy
+ : $(requirements) : $(name) ] ;
+}
+
+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) ;
+}
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