1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Updates for development environment (#8801)

This commit is contained in:
Jesse Hills
2025-05-22 13:24:34 +12:00
committed by GitHub
parent 1466aa7703
commit bd7c2a680c
6 changed files with 44 additions and 17 deletions

View File

@@ -3,9 +3,6 @@
set -e
# set -x
apt update
apt-get install avahi-utils -y
mkdir -p config
script/setup

View File

@@ -7,11 +7,7 @@ import sys
def find_and_activate_virtualenv():
if (
("VIRTUAL_ENV" in os.environ)
or os.environ.get("DEVCONTAINER")
or os.environ.get("ESPHOME_NO_VENV")
):
if "VIRTUAL_ENV" in os.environ:
return
try:

View File

@@ -4,7 +4,7 @@
set -e
cd "$(dirname "$0")/.."
if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ] && [ ! "$ESPHOME_NO_VENV" ]; then
if [ ! -n "$VIRTUAL_ENV" ]; then
if [ -x "$(command -v uv)" ]; then
uv venv venv
else

View File

@@ -1,8 +1,6 @@
@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