numpy: enable numpy.distutils patch only if it's also in distutils

Fixes: 095095c ('python: add C++ compiler support for distutils')
This commit is contained in:
Dmitry Kalinkin
2016-10-26 21:29:55 +00:00
parent 6404a30afb
commit 46dd9dfc52
2 changed files with 4 additions and 3 deletions

View File

@@ -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