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:
18
numpy.jam
Normal file
18
numpy.jam
Normal 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) ;
|
||||
}
|
||||
Reference in New Issue
Block a user