pysite support for pythonXYFull wrapper
svn path=/nixpkgs/branches/stdenv-updates/; revision=32593
This commit is contained in:
parent
d670c0e45c
commit
1d2e06e068
2 changed files with 14 additions and 0 deletions
13
pkgs/development/interpreters/python/wrapper-builder.sh
Normal file
13
pkgs/development/interpreters/python/wrapper-builder.sh
Normal 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
|
|
@ -7,6 +7,7 @@ stdenv.mkDerivation {
|
|||
name = "python-${python.version}-wrapper";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
builder = ./wrapper-builder.sh;
|
||||
propagatedBuildInputs = [ python ] ++ extraLibs;
|
||||
|
||||
unpackPhase = "true";
|
||||
|
|
Loading…
Reference in a new issue