setuptoolsSite - only setuptools' site.py
This commit is contained in:
@@ -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/
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user