Skip to content

Commit

Permalink
add windows script/setup.bat (esphome#7140)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Burzinski <[email protected]>
  • Loading branch information
nielsnl68 and kbx81 authored Aug 12, 2024
1 parent f13cf1f commit 8148eae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions script/setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@echo off

if defined DEVCONTAINER goto :install
if defined VIRTUAL_ENV goto :install
if defined ESPHOME_NO_VENV goto :install

echo Starting the Virtual Environment
python -m venv venv
call venv/Scripts/activate
echo Running the Virtual Environment

:install

echo Installing required packages...

python.exe -m pip install --upgrade pip

pip3 install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt -r requirements_dev.txt
pip3 install setuptools wheel
pip3 install -e ".[dev,test,displays]" --config-settings editable_mode=compat

pre-commit install

python script/platformio_install_deps.py platformio.ini --libraries --tools --platforms

echo .
echo .
echo Virtual environment created. Run 'venv/Scripts/activate' to use it.

0 comments on commit 8148eae

Please sign in to comment.