setuptoolsSite - only setuptools' site.py
This commit is contained in:
parent
d4d76a8443
commit
e50571e29d
@ -1,7 +1,9 @@
|
||||
{ stdenv, fetchurl, python, wrapPython }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "setuptools-0.6c11";
|
||||
name = "setuptools-" + version;
|
||||
|
||||
version = "0.6c11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pypi.python.org/packages/source/s/setuptools/${name}.tar.gz";
|
||||
|
16
pkgs/development/python-modules/setuptools/site.nix
Normal file
16
pkgs/development/python-modules/setuptools/site.nix
Normal file
@ -0,0 +1,16 @@
|
||||
# Propagated by buildPythonPackge to process pth files
|
||||
|
||||
{ stdenv, python, setuptools }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python-setuptools-site-${setuptools.version}";
|
||||
|
||||
buildInputs = [ python setuptools ];
|
||||
|
||||
unpackPhase = "true";
|
||||
installPhase = ''
|
||||
dst="$out/lib/${python.libPrefix}/site-packages"
|
||||
ensureDir $dst
|
||||
ln -s ${setuptools}/lib/${python.libPrefix}/site-packages/site.* $dst/
|
||||
'';
|
||||
}
|
@ -9,7 +9,7 @@ let pythonPackages = python.modules // rec {
|
||||
|
||||
buildPythonPackage = import ../development/python-modules/generic {
|
||||
inherit (pkgs) lib;
|
||||
inherit python wrapPython setuptools offlineDistutils;
|
||||
inherit python wrapPython setuptools setuptoolsSite offlineDistutils;
|
||||
};
|
||||
|
||||
|
||||
@ -24,6 +24,11 @@ let pythonPackages = python.modules // rec {
|
||||
inherit python wrapPython;
|
||||
};
|
||||
|
||||
setuptoolsSite = import ../development/python-modules/setuptools/site.nix {
|
||||
inherit (pkgs) stdenv;
|
||||
inherit python setuptools;
|
||||
};
|
||||
|
||||
offlineDistutils = import ../development/python-modules/offline-distutils {
|
||||
inherit (pkgs) stdenv;
|
||||
inherit python;
|
||||
|
Loading…
Reference in New Issue
Block a user