setuptoolsSite - only setuptools' site.py

This commit is contained in:
Florian Friesdorf 2012-12-03 05:20:04 +01:00
parent d4d76a8443
commit e50571e29d
3 changed files with 25 additions and 2 deletions

View File

@ -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";

View 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/
'';
}

View File

@ -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;