Adding deployment to raspberrypi
This commit is contained in:
@@ -8,7 +8,8 @@ sudo apt-get install -y \
|
||||
python3-prctl \
|
||||
python3-picamera2 \
|
||||
python3-pil \
|
||||
ffmpeg
|
||||
ffmpeg \
|
||||
nginx
|
||||
|
||||
echo "Configuring Poetry to use system site-packages..."
|
||||
poetry config virtualenvs.options.system-site-packages true
|
||||
@@ -17,7 +18,7 @@ echo "Removing existing venv to ensure clean state..."
|
||||
poetry env remove python3 2>/dev/null || true
|
||||
|
||||
echo "Installing Python dependencies..."
|
||||
poetry install --without pi
|
||||
poetry install --without pi --no-dev
|
||||
|
||||
echo "Verifying picamera2 is accessible..."
|
||||
poetry run python -c "import picamera2; print(f'picamera2 found at: {picamera2.__file__}')"
|
||||
|
||||
Reference in New Issue
Block a user