forked from mirrors/nixpkgs
python: Fix invalid pip call in setuptoolsShellHook
This commit is contained in:
parent
8495566fb6
commit
5505d2f036
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue