matplotlib: Don't search in global paths
Sets the `basedirlist` option in setup.cfg such that distutils does not search
for headers and libraries in `/usr`, and `/usr/local`.
Otherwise the build can fail on non-NixOS machines, see #15993.
commit616f84689437b06d78fadd82e3b3ccf01e9ec7f7
authorAndreas Herrmann <andreash87@gmx.ch>
dateFri 24 Jun 2016, 11:50 (10 years ago)
parentdf89584
pkgs/development/python-modules/matplotlib/basedirlist.patchnew file+8
@@ -0,0 +1,8 @@
1+diff --git a/setup.cfg b/setup.cfg
2+new file mode 100644
3+index 0000000..6f81985
4+--- /dev/null
5++++ b/setup.cfg
6+@@ -0,0 +1,2 @@
7++[directories]
8++basedirlist = .
pkgs/development/python-modules/matplotlib/default.nix+3−1
@@ -35,7 +35,9 @@ buildPythonPackage rec {
3535 ++ stdenv.lib.optional enableGtk2 pygtk
3636 ++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobjectIntrospection pygobject3 ];
3737
38− patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv.patch ];
38+ patches =
39+ [ ./basedirlist.patch ] ++
40+ stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv.patch ];
3941
4042 checkPhase = ''
4143 ${python.interpreter} tests.py