From 85f4d9150b300cec78fef75728c14bd13620c15e Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Wed, 15 Oct 2025 20:32:48 -0700 Subject: [PATCH] Add Support for NEOPixel via SPI --- script/setup | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/script/setup b/script/setup index e747bd8..f15bf3d 100755 --- a/script/setup +++ b/script/setup @@ -17,20 +17,14 @@ builder = venv.EnvBuilder(with_pip=True) context = builder.ensure_directories(_VENV_DIR) builder.create(_VENV_DIR) -# Upgrade dependencies +# Upgrade pip and setuptools pip = [context.env_exe, "-m", "pip"] -subprocess.check_call(pip + ["install", "--upgrade", "pip"]) -subprocess.check_call(pip + ["install", "--upgrade", "setuptools", "wheel"]) -subprocess.check_call(pip + ["install", "--upgrade", "python-mpv"]) -subprocess.check_call(pip + ["install", "--upgrade", "gpiozero"]) -subprocess.check_call(pip + ["install", "--upgrade", "spidev"]) -subprocess.check_call(pip + ["install", "--upgrade", "adafruit-circuitpython-dotstar"]) - -# Install requirements -subprocess.check_call(pip + ["install", "-e", str(_PROGRAM_DIR)]) +subprocess.check_call(pip + ["install", "--upgrade", "pip", "setuptools", "wheel"]) +# Install the project and all its dependencies from pyproject.toml if args.dev: - # Install dev requirements - subprocess.check_call( - pip + ["install", "-e", f"{_PROGRAM_DIR}[dev]"] - ) + # Install with dev dependencies + subprocess.check_call(pip + ["install", "-e", f"{_PROGRAM_DIR}[dev]"]) +else: + # Install with regular dependencies + subprocess.check_call(pip + ["install", "-e", str(_PROGRAM_DIR)])