Merge branch 'py/offline-distutils' into python-merge
Conflicts: pkgs/development/python-modules/generic/default.nix
This commit is contained in:
10
pkgs/development/python-modules/generic/builder.sh
Normal file
10
pkgs/development/python-modules/generic/builder.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
source $stdenv/setup
|
||||
|
||||
# do not allow distutils to make downloads, whatever install command is used
|
||||
export PYTHONPATH="${setuptools}/lib/${python.libPrefix}:$PYTHONPATH"
|
||||
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"
|
||||
|
||||
# enable pth files for dependencies
|
||||
export PYTHONPATH="${site}/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
||||
|
||||
genericBuild
|
||||
@@ -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, offlineDistutils }:
|
||||
|
||||
{ name, namePrefix ? "python-"
|
||||
|
||||
@@ -47,6 +47,8 @@ python.stdenv.mkDerivation (attrs // {
|
||||
|
||||
buildInputStrings = map toString buildInputs;
|
||||
|
||||
builder = ./builder.sh
|
||||
|
||||
pythonPath = [ setuptools] ++ pythonPath;
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user