From 5ec98cf0bafebf6d67745f5e281a15a46ae3b932 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 30 Jan 2022 14:08:13 -0500 Subject: [PATCH] scripts: workaround pip 22.0 issues Signed-off-by: Eric Callahan --- scripts/install-moonraker.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install-moonraker.sh b/scripts/install-moonraker.sh index 3f4e7a0..d659b3d 100755 --- a/scripts/install-moonraker.sh +++ b/scripts/install-moonraker.sh @@ -49,7 +49,11 @@ create_virtualenv() fi if [ ! -d ${PYTHONDIR} ]; then - virtualenv -p /usr/bin/python3 ${PYTHONDIR} + GET_PIP="${HOME}/get-pip.py" + virtualenv --no-pip -p /usr/bin/python3 ${PYTHONDIR} + curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o ${GET_PIP} + ${PYTHONDIR}/bin/python ${GET_PIP} + rm ${GET_PIP} fi # Install/update dependencies