mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
Revert "include site for python wrappers to enable deps via pth files"
This reverts commit dca280ab0b668553c50506ab7b31284e8477a803. svn path=/nixpkgs/branches/stdenv-updates/; revision=32660
This commit is contained in:
parent
43e16d04b9
commit
3b39dff906
@ -3,7 +3,7 @@
|
|||||||
(http://pypi.python.org/pypi/setuptools/), which represents a large
|
(http://pypi.python.org/pypi/setuptools/), which represents a large
|
||||||
number of Python packages nowadays. */
|
number of Python packages nowadays. */
|
||||||
|
|
||||||
{ python, setuptools, wrapPython, lib, site }:
|
{ python, setuptools, wrapPython, lib }:
|
||||||
|
|
||||||
{ name, namePrefix ? "python-"
|
{ name, namePrefix ? "python-"
|
||||||
|
|
||||||
@ -69,8 +69,7 @@ python.stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
||||||
|
|
||||||
# XXX: I think setuptools is not needed here
|
pythonPath = [ setuptools] ++ pythonPath;
|
||||||
pythonPath = [ setuptools site ] ++ pythonPath;
|
|
||||||
|
|
||||||
# XXX: Should we run `easy_install --always-unzip'? It doesn't seem
|
# XXX: Should we run `easy_install --always-unzip'? It doesn't seem
|
||||||
# to have a noticeable impact on small scripts.
|
# to have a noticeable impact on small scripts.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, python, wrapPython, site }:
|
{ stdenv, fetchurl, python, wrapPython }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "setuptools-0.6c11";
|
name = "setuptools-0.6c11";
|
||||||
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1lx1hwxkhipyh206bgl90ddnfcnb68bzcvyawczbf833fadyl3v3";
|
sha256 = "1lx1hwxkhipyh206bgl90ddnfcnb68bzcvyawczbf833fadyl3v3";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python wrapPython site ];
|
buildInputs = [ python wrapPython ];
|
||||||
|
|
||||||
buildPhase = "python setup.py build --build-base $out";
|
buildPhase = "python setup.py build --build-base $out";
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
# remove generic files, leave setuptools.pth
|
# remove generic files, leave setuptools.pth
|
||||||
rm $dst/site.py*
|
rm $dst/site.py*
|
||||||
rm $dst/easy-install.pth
|
rm $dst/easy-install.pth
|
||||||
pythonPath=${site} wrapPythonPrograms
|
wrapPythonPrograms
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # doesn't work with Python 2.7
|
doCheck = false; # doesn't work with Python 2.7
|
||||||
|
@ -9,13 +9,13 @@ let pythonPackages = python.modules // rec {
|
|||||||
|
|
||||||
buildPythonPackage = import ../development/python-modules/generic {
|
buildPythonPackage = import ../development/python-modules/generic {
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit python wrapPython setuptools site;
|
inherit python wrapPython setuptools;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
setuptools = import ../development/python-modules/setuptools {
|
setuptools = import ../development/python-modules/setuptools {
|
||||||
inherit (pkgs) stdenv fetchurl;
|
inherit (pkgs) stdenv fetchurl;
|
||||||
inherit python wrapPython site;
|
inherit python wrapPython;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user