diff options
Diffstat (limited to 'pkgs/development/interpreters/python/python-linkme-wrapper.sh')
-rw-r--r-- | pkgs/development/interpreters/python/python-linkme-wrapper.sh | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/pkgs/development/interpreters/python/python-linkme-wrapper.sh b/pkgs/development/interpreters/python/python-linkme-wrapper.sh deleted file mode 100644 index 42674aa83b0..00000000000 --- a/pkgs/development/interpreters/python/python-linkme-wrapper.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# -# Install it into a nix profile and from there build symlink chains. -# The chain will be followed to set the PYTHONPATH -# A/bin/foo -> B/bin/bar -> NIXENV/bin/.python-linkme-wrapper.sh -# - -if test ! -L "$0"; then - echo "Link me!" - exit 1 -fi - -PROG=$(basename "$0") -SITES= - -pypath() { - BIN=$(realpath -s "$(dirname "$1")") - ENV=$(dirname "$BIN") - SITE="$ENV/lib/python2.7/site-packages" - SITES="$SITES${SITES:+:}$SITE" - - PRG="$BIN"/$(readlink "$1") - - if test -L "$PRG"; then - pypath "$PRG" - fi -} - -pypath $(realpath -s "$0") - -export PYTHONPATH="$PYTHONPATH${PYTHONPATH:+:}$SITES" - -exec "$BIN/$PROG" "$@" |