Merge pull request #93208 from veprbl/pr/numexpr_darwin_fix
pythonPackages.numexpr: fix darwin build by refactoring checkPhase
This commit is contained in:
commit
012582c6d1
@ -21,17 +21,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ numpy ];
|
propagatedBuildInputs = [ numpy ];
|
||||||
|
|
||||||
# Run the test suite.
|
|
||||||
# It requires the build path to be in the python search path.
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pushd $out
|
runtest="$(pwd)/numexpr/tests/test_numexpr.py"
|
||||||
${python}/bin/${python.executable} <<EOF
|
pushd "$out"
|
||||||
import sys
|
${python}/bin/${python.executable} "$runtest"
|
||||||
import numexpr
|
|
||||||
r = numexpr.test()
|
|
||||||
if not r.wasSuccessful():
|
|
||||||
sys.exit(1)
|
|
||||||
EOF
|
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user