1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

install_python2.sh: Summarize messy virtualenv options

This commit is contained in:
A Holt 2023-05-20 17:33:37 -04:00 committed by GitHub
parent e8a3129f13
commit 7209bcd97d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,12 +15,11 @@
export DEBIAN_FRONTEND=noninteractive
ARCH=$(dpkg --print-architecture)
# 2023-05-19: #3573 -> PR #3582: Ubuntu 23.10's virtualenv 20.23 no longer
# supports Python 2. Older version from Ubuntu 23.04 seemed plausible...
# supports Python 2. Older versions from Ubuntu 22.04 (#3583) & 23.04 like...
# http://launchpadlibrarian.net/651276954/virtualenv_20.19.0+ds-1_all.deb
# ...but drags in newer 20.23+ version of python3-virtualenv, leaving us
# with /usr/bin/virtualenv 20.23 once again, i.e. preventing Python 2.
# ...unfortunately drag in newer 20.23+ version of python3-virtualenv, leaving
# us with /usr/bin/virtualenv 20.23 once again, i.e. preventing Python 2.
# Whereas pip (which installs /usr/local/bin/virtualvenv) at least works:
apt -y install python3-pip
pip install virtualenv==20.21.1 --break-system-packages