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
9401576b64
commit
f0c39b4b63
@ -34,7 +34,7 @@ poetry2nix.mkPoetryApplication {
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cat > $out/bin/poetry <<EOF
|
cat > $out/bin/poetry <<EOF
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH
|
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages
|
||||||
exec ${python.interpreter} -m poetry "\$@"
|
exec ${python.interpreter} -m poetry "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/poetry
|
chmod +x $out/bin/poetry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user