diff --git a/numpy.jam b/numpy.jam index e18a0b5d..79b53169 100644 --- a/numpy.jam +++ b/numpy.jam @@ -1,18 +1,23 @@ import testing ; import python ; +rule init ( ) +{ + project.push-current $(.project) ; + debug-message Configuring numpy... ; + + local full-cmd = + $(python.interpreter)" -c \"from numpy.distutils import misc_util; print misc_util.get_numpy_include_dirs()" ; + + local output = [ shell-cmd $(full-cmd) ] ; + 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) ] ; } - -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) ; -}