lol

buildPythonPackage: fix numpy

+3 -26
+3 -24
pkgs/development/python-modules/numpy-scipy-support.nix
··· 16 16 # .test() function, which will run the test suite. 17 17 checkPhase = '' 18 18 runHook preCheck 19 - 20 - _python=${python}/bin/${python.executable} 21 - 22 - # We will "install" into a temp directory, so that we can run the 23 - # tests (see below). 24 - install_dir="$TMPDIR/test_install" 25 - install_lib="$install_dir/lib/${python.libPrefix}/site-packages" 26 - mkdir -p $install_dir 27 - $_python setup.py install \ 28 - --install-lib=$install_lib \ 29 - --old-and-unmanageable \ 30 - --prefix=$install_dir > /dev/null 31 - 32 - # Create a directory in which to run tests (you get an error if you try to 33 - # import the package when you're in the current directory). 34 - mkdir $TMPDIR/run_tests 35 - pushd $TMPDIR/run_tests > /dev/null 36 - # Temporarily add the directory we installed in to the python path 37 - # (not permanently, or this pythonpath will wind up getting exported), 38 - # and run the test suite. 39 - PYTHONPATH="$install_lib:$PYTHONPATH" $_python -c \ 40 - 'import ${pkgName}; ${pkgName}.test("fast", verbose=10)' 41 - popd > /dev/null 42 - 19 + pushd dist 20 + ${python.interpreter} -c 'import ${pkgName}; ${pkgName}.test("fast", verbose=10)' 21 + popd 43 22 runHook postCheck 44 23 ''; 45 24
-2
pkgs/top-level/python-packages.nix
··· 10565 10565 10566 10566 inherit (support) preBuild checkPhase; 10567 10567 10568 - setupPyBuildFlags = ["-i" "--fcompiler='gnu95'"]; 10569 - 10570 10568 buildInputs = [ pkgs.gfortran self.nose ]; 10571 10569 propagatedBuildInputs = [ support.openblas ]; 10572 10570