Skip to content

Commit

Permalink
poetry: Don't add dependencies to PYTHONPATH
Browse files Browse the repository at this point in the history
They get picked up by child processes of poetry which for example
leads to the wrong version of pip being used by `poetry install`.
  • Loading branch information
adisbladis committed Jan 4, 2020
1 parent 9401576 commit f0c39b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/tools/poetry/default.nix
Expand Up @@ -34,7 +34,7 @@ poetry2nix.mkPoetryApplication {
mkdir -p $out/bin
cat > $out/bin/poetry <<EOF
#!${runtimeShell}
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages
exec ${python.interpreter} -m poetry "\$@"
EOF
chmod +x $out/bin/poetry
Expand Down

0 comments on commit f0c39b4

Please sign in to comment.