3
0
Fork 0
forked from mirrors/nixpkgs

python: Fix invalid pip call in setuptoolsShellHook

This commit is contained in:
Sebastian Jordan 2019-09-22 02:36:08 +02:00 committed by Frederik Rietdijk
parent 8495566fb6
commit 5505d2f036

View file

@ -27,9 +27,9 @@ setuptoolsShellHook() {
if test -e setup.py; then
tmp_path=$(mktemp -d)
export PATH="$tmp_path/bin:$PATH"
export PYTHONPATH="@pythonSitePackages@:$PYTHONPATH"
export PYTHONPATH="$tmp_path/@pythonSitePackages@:$PYTHONPATH"
mkdir -p "$tmp_path/@pythonSitePackages@"
eval "@pythonInterpreter@ -m pip -e . --prefix $tmp_path >&2"
eval "@pythonInterpreter@ -m pip install -e . --prefix $tmp_path >&2"
fi
runHook postShellHook