3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #93208 from veprbl/pr/numexpr_darwin_fix

pythonPackages.numexpr: fix darwin build by refactoring checkPhase
This commit is contained in:
Dmitry Kalinkin 2020-07-18 12:05:17 -04:00 committed by GitHub
commit 012582c6d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,17 +21,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ numpy ];
# Run the test suite.
# It requires the build path to be in the python search path.
checkPhase = ''
pushd $out
${python}/bin/${python.executable} <<EOF
import sys
import numexpr
r = numexpr.test()
if not r.wasSuccessful():
sys.exit(1)
EOF
runtest="$(pwd)/numexpr/tests/test_numexpr.py"
pushd "$out"
${python}/bin/${python.executable} "$runtest"
popd
'';