summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/wrapper-builder.sh
blob: f3353c32ef1023a710895e3efbc1cd54a5837c6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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