Work on numpy configuration
This commit is contained in:
parent
718cfd468e
commit
daf466a697
23
numpy.jam
23
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) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user