From ce8c0f46ae225b00254d0ce313c9d9894643ec3f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Thu, 17 Feb 2022 14:47:29 -0500 Subject: [PATCH] fixes for python upstream breaking us --- pdt.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pdt.sh b/pdt.sh index c97941e..c0ea98a 100644 --- a/pdt.sh +++ b/pdt.sh @@ -190,15 +190,16 @@ pdt-setup() { if [[ ! -e ~/.local/bin/pip ]]; then tmp=$(mktemp) - wget -O$tmp https://bootstrap.pypa.io/get-pip.py + pyver=$(python3 --version | sed -r 's/.*(3\.[0-9]+).*/\1/') + echo fyi: detected pyver: $pyver. this should look something like 3.6 + # the bootstrap script at https://bootstrap.pypa.io/get-pip.py requires 3.7+ + # as I write this. + wget -O$tmp https://bootstrap.pypa.io/pip/$pyver/get-pip.py python3 $tmp --user hash -r fi - - if [[ ! -e ~/.local/bin/virtualenv ]]; then - python3 -m pip install --user virtualenv - fi + python3 -m pip install --user -U virtualenv cd ~/src/rainbowstream python3 -m virtualenv -p python3 venv -- 2.25.1