1
0
Fork 0

direnv: Support pip

This commit is contained in:
Daniel Kempkens 2023-10-14 19:55:29 +02:00
parent c4d547885a
commit 303bbd8294
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -51,8 +51,13 @@ project_node() {
} }
project_python() { project_python() {
export PYTHONUSERBASE=$(direnv_layout_dir)/python-user
path_add PYTHONPATH $(realpath $PYTHONUSERBASE/lib/python*/site-packages)
export POETRY_HOME=$(direnv_layout_dir)/poetry/data export POETRY_HOME=$(direnv_layout_dir)/poetry/data
export POETRY_CACHE_DIR=$(direnv_layout_dir)/poetry/cache export POETRY_CACHE_DIR=$(direnv_layout_dir)/poetry/cache
PATH_add $PYTHONUSERBASE/bin
} }
project_ruby() { project_ruby() {