Use uv instead of pip in development env (#113517)

This commit is contained in:
Robert Resch
2024-05-21 09:56:31 +02:00
committed by GitHub
parent d44f949b19
commit 5e3483ac3c
9 changed files with 49 additions and 28 deletions

View File

@@ -13,14 +13,18 @@ if [ -s .python-version ]; then
export PYENV_VERSION
fi
# other common virtualenvs
my_path=$(git rev-parse --show-toplevel)
if [ -n "${VIRTUAL_ENV}" ] && [ -f "${VIRTUAL_ENV}/bin/activate" ]; then
. "${VIRTUAL_ENV}/bin/activate"
else
# other common virtualenvs
my_path=$(git rev-parse --show-toplevel)
for venv in venv .venv .; do
if [ -f "${my_path}/${venv}/bin/activate" ]; then
. "${my_path}/${venv}/bin/activate"
break
fi
done
for venv in venv .venv .; do
if [ -f "${my_path}/${venv}/bin/activate" ]; then
. "${my_path}/${venv}/bin/activate"
break
fi
done
fi
exec "$@"