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 ];
|
||||
|
||||
# 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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user