nixpkgs/pkgs/development/interpreters/python/wrapper-builder.sh
Florian Friesdorf 1d2e06e068 pysite support for pythonXYFull wrapper
svn path=/nixpkgs/branches/stdenv-updates/; revision=32593
2012-02-26 17:23:42 +00:00

14 lines
285 B
Bash

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