nixpkgs/pkgs/development/interpreters/python/wrapper-builder.sh

14 lines
285 B
Bash
Raw Normal View History

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