buildPythonPackage: fix numpy
This commit is contained in:
parent
c9b5ff02c7
commit
7e57e59ddd
@ -16,30 +16,9 @@
|
|||||||
# .test() function, which will run the test suite.
|
# .test() function, which will run the test suite.
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
|
pushd dist
|
||||||
_python=${python}/bin/${python.executable}
|
${python.interpreter} -c 'import ${pkgName}; ${pkgName}.test("fast", verbose=10)'
|
||||||
|
popd
|
||||||
# We will "install" into a temp directory, so that we can run the
|
|
||||||
# tests (see below).
|
|
||||||
install_dir="$TMPDIR/test_install"
|
|
||||||
install_lib="$install_dir/lib/${python.libPrefix}/site-packages"
|
|
||||||
mkdir -p $install_dir
|
|
||||||
$_python setup.py install \
|
|
||||||
--install-lib=$install_lib \
|
|
||||||
--old-and-unmanageable \
|
|
||||||
--prefix=$install_dir > /dev/null
|
|
||||||
|
|
||||||
# Create a directory in which to run tests (you get an error if you try to
|
|
||||||
# import the package when you're in the current directory).
|
|
||||||
mkdir $TMPDIR/run_tests
|
|
||||||
pushd $TMPDIR/run_tests > /dev/null
|
|
||||||
# Temporarily add the directory we installed in to the python path
|
|
||||||
# (not permanently, or this pythonpath will wind up getting exported),
|
|
||||||
# and run the test suite.
|
|
||||||
PYTHONPATH="$install_lib:$PYTHONPATH" $_python -c \
|
|
||||||
'import ${pkgName}; ${pkgName}.test("fast", verbose=10)'
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -10565,8 +10565,6 @@ let
|
|||||||
|
|
||||||
inherit (support) preBuild checkPhase;
|
inherit (support) preBuild checkPhase;
|
||||||
|
|
||||||
setupPyBuildFlags = ["-i" "--fcompiler='gnu95'"];
|
|
||||||
|
|
||||||
buildInputs = [ pkgs.gfortran self.nose ];
|
buildInputs = [ pkgs.gfortran self.nose ];
|
||||||
propagatedBuildInputs = [ support.openblas ];
|
propagatedBuildInputs = [ support.openblas ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user