From 718cfd468ef05b5927e244c1de2a9fe0a8e8f776 Mon Sep 17 00:00:00 2001 From: Ankit Daftery Date: Sun, 29 May 2011 18:39:06 +0000 Subject: [PATCH] First build of numpy.jam module to check for the location of the numpy build directory --- numpy.jam | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 numpy.jam 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) ; +}