mirror of
https://github.com/home-assistant/core.git
synced 2026-02-15 07:36:16 +00:00
Use uv instead of pip in development env (#113517)
This commit is contained in:
14
script/setup
14
script/setup
@@ -16,15 +16,23 @@ fi
|
||||
|
||||
mkdir -p config
|
||||
|
||||
if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ];then
|
||||
python3 -m venv venv
|
||||
if [ ! -n "$VIRTUAL_ENV" ]; then
|
||||
if [ -x "$(command -v uv)" ]; then
|
||||
uv venv venv
|
||||
else
|
||||
python3 -m venv venv
|
||||
fi
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v uv)" ]; then
|
||||
python3 -m pip install uv
|
||||
fi
|
||||
|
||||
script/bootstrap
|
||||
|
||||
pre-commit install
|
||||
python3 -m pip install -e . --config-settings editable_mode=compat --constraint homeassistant/package_constraints.txt
|
||||
uv pip install -e . --config-settings editable_mode=compat --constraint homeassistant/package_constraints.txt
|
||||
python3 -m script.translations develop --all
|
||||
|
||||
hass --script ensure_config -c config
|
||||
|
||||
Reference in New Issue
Block a user