include site for python wrappers to enable deps via pth files

svn path=/nixpkgs/branches/stdenv-updates/; revision=32582
This commit is contained in:
Florian Friesdorf
2012-02-26 17:23:05 +00:00
parent 8adcbec448
commit ccb34b093f
3 changed files with 8 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, wrapPython }:
{ stdenv, fetchurl, python, wrapPython, site }:
stdenv.mkDerivation rec {
name = "setuptools-0.6c11";
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "1lx1hwxkhipyh206bgl90ddnfcnb68bzcvyawczbf833fadyl3v3";
};
buildInputs = [ python wrapPython ];
buildInputs = [ python wrapPython site ];
buildPhase = "python setup.py build --build-base $out";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
# remove generic files, leave setuptools.pth
rm $dst/site.py*
rm $dst/easy-install.pth
wrapPythonPrograms
pythonPath=${site} wrapPythonPrograms
'';
doCheck = false; # doesn't work with Python 2.7