2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

First build of numpy.jam module to check for the location of the numpy build directory

This commit is contained in:
Ankit Daftery
2011-05-29 18:39:06 +00:00
parent 3796825523
commit 718cfd468e

18
numpy.jam Normal file
View File

@@ -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) ;
}