Work on numpy configuration

This commit is contained in:
Stefan Seefeld 2011-05-30 01:18:16 +00:00
parent 718cfd468e
commit daf466a697

View File

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