mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
poetry: Don't propagate anything via PYTHONPATH
This commit is contained in:
parent
e20d2311a1
commit
b33fd6987a
1 changed files with 7 additions and 3 deletions
|
@ -33,9 +33,13 @@ poetry2nix.mkPoetryApplication {
|
|||
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/poetry <<EOF
|
||||
#!${runtimeShell}
|
||||
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages
|
||||
exec ${python.interpreter} -m poetry "\$@"
|
||||
#!${python.interpreter}
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.append("$out/lib/${python.libPrefix}/site-packages")
|
||||
from poetry.console import main
|
||||
main()
|
||||
EOF
|
||||
chmod +x $out/bin/poetry
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue