mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
pythonPackages.numexpr: fix darwin build by refactoring checkPhase
This fixes a following error on python 3.8: FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/0s7kw66pav5c7bi38lb0gznxnxz31a1n-python3.8-numexpr-2.7.1/<stdin>'
This commit is contained in:
parent
4af55b773f
commit
c184c87571
@ -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