sTodo-m5paper-client/libraries/FastLED/install
2025-06-30 20:47:33 +02:00

18 lines
No EOL
518 B
Bash
Executable file

#!/bin/bash
set -e
uv venv --python 3.11
uv pip install . --refresh-package fastled
# This is needed to force the installation to finalize.
uv run python -c "import os; _ = os.getcwd()"
set +e
# if ./activate exists, remove it
if [ -f activate ]; then
rm activate
fi
# symlink activate to .venv/bin/activate on linux/mac and .venv/Scripts/activate on windows
if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "darwin"* ]]; then
ln -s .venv/bin/activate activate
else
ln -s .venv/Scripts/activate activate
fi