python: add C++ compiler support for distutils
This should help with builds against clang
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{lib, python, buildPythonPackage, isPyPy, gfortran, nose, blas}:
|
||||
{lib, python, buildPythonPackage, isPy27, isPyPy, gfortran, nose, blas}:
|
||||
|
||||
args:
|
||||
|
||||
@@ -12,6 +12,12 @@ in buildPythonPackage (args // rec {
|
||||
buildInputs = args.buildInputs or [ gfortran nose ];
|
||||
propagatedBuildInputs = args.propagatedBuildInputs or [ passthru.blas ];
|
||||
|
||||
patches = lib.optionals isPy27 [
|
||||
# See cpython 2.7 patches.
|
||||
# numpy.distutils is used by cython during it's check phase
|
||||
./numpy-distutils-C++.patch
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's/-faltivec//' numpy/distutils/system_info.py
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user