propagate setuptoolsSite to load pth files
This commit is contained in:
parent
e50571e29d
commit
17597e8350
@ -3,12 +3,14 @@
|
|||||||
(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, offlineDistutils }:
|
{ python, setuptools, wrapPython, lib, offlineDistutils, setuptoolsSite }:
|
||||||
|
|
||||||
{ name, namePrefix ? "python-"
|
{ name, namePrefix ? "python-"
|
||||||
|
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
|
|
||||||
|
, propagatedBuildInputs ? []
|
||||||
|
|
||||||
, # List of packages that should be added to the PYTHONPATH
|
, # List of packages that should be added to the PYTHONPATH
|
||||||
# environment variable in programs built by this function. Packages
|
# environment variable in programs built by this function. Packages
|
||||||
# in the standard `propagatedBuildInputs' variable are also added.
|
# in the standard `propagatedBuildInputs' variable are also added.
|
||||||
@ -47,6 +49,9 @@ python.stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
||||||
|
|
||||||
|
# setuptoolsSite is responsible for loading pth files
|
||||||
|
propagatedBuildInputs = propagatedBuildInputs ++ [ setuptoolsSite ];
|
||||||
|
|
||||||
buildInputStrings = map toString buildInputs;
|
buildInputStrings = map toString buildInputs;
|
||||||
|
|
||||||
pythonPath = [ setuptools] ++ pythonPath;
|
pythonPath = [ setuptools] ++ pythonPath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user