mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
poetry: Don't add dependencies to PYTHONPATH
They get picked up by child processes of poetry which for example leads to the wrong version of pip being used by `poetry install`.
This commit is contained in:
parent
2831d5e3e8
commit
e20d2311a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue