3
0
Fork 0
forked from mirrors/nixpkgs

pysite support for pythonXYFull wrapper

svn path=/nixpkgs/branches/stdenv-updates/; revision=32593
This commit is contained in:
Florian Friesdorf 2012-02-26 17:23:42 +00:00
parent d670c0e45c
commit 1d2e06e068
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,13 @@
source $stdenv/setup
preConfigure() {
PYTHONPATH='$(
# activate site if installed
bindir=$(dirname "$0")
pysite="$bindir/pysite"
relpath=$(test -x "$pysite" && "$pysite" path)
echo -n ${relpath:+"$relpath":}
)'"$PYTHONPATH"
}
genericBuild

View file

@ -7,6 +7,7 @@ stdenv.mkDerivation {
name = "python-${python.version}-wrapper";
buildInputs = [ makeWrapper ];
builder = ./wrapper-builder.sh;
propagatedBuildInputs = [ python ] ++ extraLibs;
unpackPhase = "true";