Add check that pip is available on startup of OctoPrint

This commit is contained in:
Fredrik Baberg 2024-01-16 19:46:43 +01:00
parent b3bdcee50c
commit 3bf6f39ef1
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2024.01.0"
version: "2024.01.1"
slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles."
arch:

View File

@ -10,6 +10,7 @@ export BASEDIR="--basedir /data/config/octoprint"
} || { # Otherwise install it.
{ # Check if Python is available (at `/data/python/octoprint`, set by PATH in Dockerfile)
python --version
python -m ensurepip
} || { # Otherwise create Python virtual environment.
python3 -m venv /data/python/octoprint
# Install wheel to speed up future installs.