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

@@ -3,7 +3,7 @@
(http://pypi.python.org/pypi/setuptools/), which represents a large
number of Python packages nowadays. */
{ python, setuptools, wrapPython, lib }:
{ python, setuptools, wrapPython, lib, site }:
{ name, namePrefix ? "python-"
@@ -69,7 +69,8 @@ python.stdenv.mkDerivation (attrs // {
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
pythonPath = [ setuptools] ++ pythonPath;
# XXX: I think setuptools is not needed here
pythonPath = [ setuptools site ] ++ pythonPath;
# XXX: Should we run `easy_install --always-unzip'? It doesn't seem
# to have a noticeable impact on small scripts.