python: provide hasCxxDistutils attribute for pythonPackages.numpy
Patching numpy.distutils used to be required for pythonPackages.cython to build on darwin. It was later accidentally disabled during one of the refactorings, but that did not break cython. This change reinstantiates the patch. It still applies, so it should be low maintenance and it can still be useful.
This commit is contained in:
committed by
Frederik Rietdijk
parent
e1502a8be2
commit
8fa36fc8a1
@@ -27,7 +27,7 @@ in buildPythonPackage rec {
|
||||
nativeBuildInputs = [ gfortran pytest ];
|
||||
buildInputs = [ blas ];
|
||||
|
||||
patches = lib.optionals (python.hasDistutilsCxxPatch or false) [
|
||||
patches = lib.optionals python.hasDistutilsCxxPatch [
|
||||
# We patch cpython/distutils to fix https://bugs.python.org/issue1222585
|
||||
# Patching of numpy.distutils is needed to prevent it from undoing the
|
||||
# patch to distutils.
|
||||
|
||||
Reference in New Issue
Block a user