Fix setuptools version

This commit is contained in:
VirtuBox
2021-09-15 17:42:21 +02:00
committed by GitHub
parent 593478352a
commit dab449c8dc

12
install
View File

@@ -447,7 +447,9 @@ wo_install() {
rm -rf /opt/wo
python3 -m venv /opt/wo
source /opt/wo/bin/activate
python3 -m pip install -U pip setuptools wheel
python3 -m pip uninstall setuptools
python3 -m pip install -I setuptools==57.5.0
python3 -m pip install -U pip wheel
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
if [ "$wo_distro_codename" = "stretch" ]; then
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.4.y#egg=python-apt
@@ -497,12 +499,16 @@ wo_travis_install() {
if [ -f ./setup.py ]; then
if [ -d /opt/wo/lib/python3."$python_ver"/site-packages/apt ]; then
source /opt/wo/bin/activate
python3 -m pip install -U pip setuptools wheel
python3 -m pip uninstall setuptools
python3 -m pip install -I setuptools==57.5.0
python3 -m pip install -U pip wheel
else
rm -rf /opt/wo
python3 -m venv /opt/wo
source /opt/wo/bin/activate
python3 -m pip install -U pip setuptools wheel
python3 -m pip uninstall setuptools
python3 -m pip install -I setuptools==57.5.0
python3 -m pip install -U pip wheel
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
if [ "$wo_distro_codename" = "stretch" ]; then
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.4.y#egg=python-apt