diff --git a/numpy.jam b/numpy.jam new file mode 100644 index 00000000..e18a0b5d --- /dev/null +++ b/numpy.jam @@ -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) ; +}