mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
18 lines
417 B
Bash
Executable file
18 lines
417 B
Bash
Executable file
#!/bin/bash
|
|
# Set up ESPHome dev environment
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ]; then
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
fi
|
|
|
|
pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt
|
|
pip3 install --no-use-pep517 -e .
|
|
|
|
pre-commit install
|
|
|
|
script/platformio_install_deps.py platformio.ini --libraries --tools --platforms
|