moving picamera out of poetry, system package works better

This commit is contained in:
2026-03-17 23:07:34 +00:00
parent 697528c991
commit 9a34f29259
3 changed files with 64 additions and 9 deletions

View File

@@ -3,12 +3,22 @@ set -e
echo "Installing system dependencies..."
sudo apt-get update -qq
sudo apt-get install -y libcap-dev python3-prctl python3-picamera2 python3-pil
sudo apt-get install -y \
libcap-dev \
python3-prctl \
python3-picamera2 \
python3-pil
echo "Configuring Poetry to use system site-packages..."
poetry config virtualenvs.options.system-site-packages true
echo "Removing existing venv to ensure clean state..."
poetry env remove python3 2>/dev/null || true
echo "Installing Python dependencies..."
poetry install
poetry install --without pi
echo "Verifying picamera2 is accessible..."
poetry run python -c "import picamera2; print(f'picamera2 found at: {picamera2.__file__}')"
echo "Done!"