forked from mirrors/nixpkgs
remove unused pythonLinkmeWrapper
This commit is contained in:
parent
928177aa91
commit
c1d6a4a8fb
|
@ -1,15 +0,0 @@
|
|||
{ stdenv }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python-linkme-wrapper-1.0";
|
||||
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cat ${./python-linkme-wrapper.sh} > $out/bin/.python-linkme-wrapper
|
||||
chmod +x $out/bin/.python-linkme-wrapper
|
||||
'';
|
||||
|
||||
preferLocalBuild = true;
|
||||
}
|
|
@ -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" "$@"
|
|
@ -4127,8 +4127,6 @@ let
|
|||
inherit stdenv fetchurl lib;
|
||||
});
|
||||
|
||||
pythonLinkmeWrapper = callPackage ../development/interpreters/python/python-linkme-wrapper.nix { };
|
||||
|
||||
pypi2nix = python27Packages.pypi2nix;
|
||||
|
||||
svg2tikz = python27Packages.svg2tikz;
|
||||
|
|
Loading…
Reference in a new issue