python3Packages.numpy: revert to setuptools

Somehow the pyproject configuration fails.
This commit is contained in:
Frederik Rietdijk 2022-09-15 19:05:14 +02:00 committed by Martin Weinelt
parent 9b4a97f4f1
commit b462aefc7f

View file

@ -11,7 +11,6 @@
, lapack , lapack
, writeTextFile , writeTextFile
, cython , cython
, setuptoolsBuildHook
, pythonOlder , pythonOlder
}: }:
@ -41,13 +40,8 @@ let
}; };
in buildPythonPackage rec { in buildPythonPackage rec {
pname = "numpy"; pname = "numpy";
# Attention! v1.22.0 breaks scipy and by extension scikit-learn, so
# build both to verify they don't break.
# https://github.com/scipy/scipy/issues/15414
version = "1.23.3"; version = "1.23.3";
format = "setuptools";
format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
@ -63,7 +57,7 @@ in buildPythonPackage rec {
./numpy-distutils-C++.patch ./numpy-distutils-C++.patch
]; ];
nativeBuildInputs = [ gfortran cython setuptoolsBuildHook ]; nativeBuildInputs = [ gfortran cython ];
buildInputs = [ blas lapack ]; buildInputs = [ blas lapack ];
# we default openblas to build with 64 threads # we default openblas to build with 64 threads