matplotlib: get rid of distribute
This commit is contained in:
parent
c00b1ba8f3
commit
dcbf69915d
|
@ -3451,6 +3451,7 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
||||||
then pkgs.clangStdenv
|
then pkgs.clangStdenv
|
||||||
else pkgs.stdenv;
|
else pkgs.stdenv;
|
||||||
|
|
||||||
|
# TODO: refactor to use pythonBuildPackage
|
||||||
matplotlib = matplotlibStdenv.mkDerivation (rec {
|
matplotlib = matplotlibStdenv.mkDerivation (rec {
|
||||||
name = "matplotlib-1.3.1";
|
name = "matplotlib-1.3.1";
|
||||||
|
|
||||||
|
@ -3462,13 +3463,16 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
||||||
# error: invalid command 'test'
|
# error: invalid command 'test'
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
buildInputs = [ python pkgs.which pkgs.ghostscript distribute ];
|
buildInputs = [ python pkgs.which pkgs.ghostscript ];
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ dateutil nose numpy pyparsing tornado pkgs.freetype pkgs.libpng pkgs.pkgconfig pkgs.tcl
|
[ dateutil nose numpy pyparsing tornado pkgs.freetype pkgs.libpng pkgs.pkgconfig pkgs.tcl
|
||||||
pkgs.tk pkgs.xlibs.libX11 ];
|
pkgs.tk pkgs.xlibs.libX11 ];
|
||||||
|
|
||||||
buildPhase = "${python}/bin/${python.executable} setup.py build";
|
buildPhase = ''
|
||||||
|
sed -i '/use_setuptools/d' setup.py
|
||||||
|
${python}/bin/${python.executable} setup.py build
|
||||||
|
'';
|
||||||
|
|
||||||
# The sed expression parses out the python version from an executable with appended characters
|
# The sed expression parses out the python version from an executable with appended characters
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in New Issue