moving picamera out of poetry, system package works better
This commit is contained in:
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user