|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72276 - sandbox/numpy
From: seefeld_at_[hidden]
Date: 2011-05-29 21:18:17
Author: stefan
Date: 2011-05-29 21:18:16 EDT (Sun, 29 May 2011)
New Revision: 72276
URL: http://svn.boost.org/trac/boost/changeset/72276
Log:
Work on numpy configuration
Text files modified:
sandbox/numpy/numpy.jam | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
Modified: sandbox/numpy/numpy.jam
==============================================================================
--- sandbox/numpy/numpy.jam (original)
+++ sandbox/numpy/numpy.jam 2011-05-29 21:18:16 EDT (Sun, 29 May 2011)
@@ -1,18 +1,23 @@
import testing ;
import python ;
-rule numpy-test ( name : sources * : requirements * )
+rule init ( )
{
- sources ?= $(name).py $(name)_mod.cpp ;
- return [ testing.make-test run-pyd : $(sources) /boost/numpy//boost_numpy
- : $(requirements) : $(name) ] ;
-}
+ project.push-current $(.project) ;
+ debug-message Configuring numpy... ;
-rule probe ( python-cmd )
-{
local full-cmd =
- $(python-cmd)" -c \"from numpy.distutils import misc_util; print misc_util.get_numpy_include_dirs()" ;
+ $(python.interpreter)" -c \"from numpy.distutils import misc_util; print misc_util.get_numpy_include_dirs()" ;
local output = [ shell-cmd $(full-cmd) ] ;
- return $(output) ;
+ includes = $(output) ;
+
+ project.pop-current ;
+}
+
+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) ] ;
}
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