pysite support for pythonXYFull wrapper
svn path=/nixpkgs/branches/stdenv-updates/; revision=32593
This commit is contained in:
@@ -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";
|
name = "python-${python.version}-wrapper";
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
builder = ./wrapper-builder.sh;
|
||||||
propagatedBuildInputs = [ python ] ++ extraLibs;
|
propagatedBuildInputs = [ python ] ++ extraLibs;
|
||||||
|
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
|
|||||||
Reference in New Issue
Block a user