summary refs log tree commit diff
path: root/pkgs/development/python-modules/numpy
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-04-17 22:57:20 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-04-28 09:17:59 +0200
commit8fa36fc8a18261a2195bc2ae5384a320fe97c6a9 (patch)
tree2c02c2ec06bd3490525fa777d81f9e9fc2db02bd /pkgs/development/python-modules/numpy
parente1502a8be258a620f77e0963e880576248e269fe (diff)
downloadnixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.tar
nixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.tar.gz
nixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.tar.bz2
nixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.tar.lz
nixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.tar.xz
nixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.tar.zst
nixpkgs-8fa36fc8a18261a2195bc2ae5384a320fe97c6a9.zip
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.
Diffstat (limited to 'pkgs/development/python-modules/numpy')
-rw-r--r--pkgs/development/python-modules/numpy/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix
index 8a7deb934ae..171496584ef 100644
--- a/pkgs/development/python-modules/numpy/default.nix
+++ b/pkgs/development/python-modules/numpy/default.nix
@@ -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.