From 46dd9dfc520c5840423ddeeb6236b3adcd5863ef Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 26 Oct 2016 21:29:55 +0000 Subject: numpy: enable numpy.distutils patch only if it's also in distutils Fixes: 095095c ('python: add C++ compiler support for distutils') --- pkgs/development/python-modules/numpy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/python-modules') diff --git a/pkgs/development/python-modules/numpy.nix b/pkgs/development/python-modules/numpy.nix index d4534248159..14504d92543 100644 --- a/pkgs/development/python-modules/numpy.nix +++ b/pkgs/development/python-modules/numpy.nix @@ -12,7 +12,7 @@ in buildPythonPackage (args // rec { buildInputs = args.buildInputs or [ gfortran nose ]; propagatedBuildInputs = args.propagatedBuildInputs or [ passthru.blas ]; - patches = lib.optionals isPy27 [ + patches = lib.optionals (python.hasDistutilsCxxPatch or false) [ # See cpython 2.7 patches. # numpy.distutils is used by cython during it's check phase ./numpy-distutils-C++.patch -- cgit 1.4.1