Add check that pip is available on startup of OctoPrint
This commit is contained in:
parent
2e1cb0b329
commit
b012f50c37
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user