Fix install issues on Ubuntu 24.04 LTS
This commit is contained in:
30
install
30
install
@@ -455,37 +455,37 @@ wo_install() {
|
|||||||
rm -rf /opt/wo
|
rm -rf /opt/wo
|
||||||
python3 -m venv /opt/wo
|
python3 -m venv /opt/wo
|
||||||
source /opt/wo/bin/activate
|
source /opt/wo/bin/activate
|
||||||
python3 -m pip uninstall setuptools -y
|
/opt/wo/bin/pip uninstall setuptools -y
|
||||||
python3 -m pip install -I setuptools==57.5.0
|
/opt/wo/bin/pip install -I setuptools==57.5.0
|
||||||
python3 -m pip install -U pip wheel
|
/opt/wo/bin/pip install -U pip wheel
|
||||||
python3 -m pip install -U distro
|
/opt/wo/bin/pip install -U distro
|
||||||
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
|
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
|
||||||
if [ "$wo_distro_codename" = "stretch" ]; 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
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.4.y#egg=python-apt
|
||||||
elif [ "$wo_distro_codename" = "bullseye" ]; then
|
elif [ "$wo_distro_codename" = "bullseye" ]; then
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.2.1#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.2.1#egg=python-apt
|
||||||
elif [ "$wo_distro_codename" = "bookworm" ]; then
|
elif [ "$wo_distro_codename" = "bookworm" ]; then
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.5.3#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.5.3#egg=python-apt
|
||||||
else
|
else
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.8.4.y#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.8.4.y#egg=python-apt
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "$wo_distro_codename" = "focal" ]; then
|
if [ "$wo_distro_codename" = "focal" ]; then
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.0.0#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.0.0#egg=python-apt
|
||||||
elif [ "$wo_distro_codename" = "bionic" ]; then
|
elif [ "$wo_distro_codename" = "bionic" ]; then
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.6.y#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.6.y#egg=python-apt
|
||||||
elif [ "$wo_distro_codename" = "jammy" ]; then
|
elif [ "$wo_distro_codename" = "jammy" ]; then
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.2.1#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.2.1#egg=python-apt
|
||||||
else
|
else
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.1.y-xenial#egg=python-apt
|
/opt/wo/bin/pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.8.y#egg=python-apt
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$wo_branch" = "master" ]; then
|
if [ "$wo_branch" = "master" ]; then
|
||||||
python3 -m pip install -U wordops
|
/opt/wo/bin/pip install -U wordops
|
||||||
else
|
else
|
||||||
python3 -m pip install -I "git+https://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops"
|
/opt/wo/bin/pip install -I "git+https://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops"
|
||||||
fi
|
fi
|
||||||
local python_venv
|
local python_venv
|
||||||
python_venv=$(python3 -c "import sys; print(sys.version_info[1])")
|
python_venv=$(python3 -c "import sys; print(sys.version_info[1])")
|
||||||
@@ -544,7 +544,7 @@ wo_travis_install() {
|
|||||||
elif [ "$wo_distro_codename" = "jammy" ]; then
|
elif [ "$wo_distro_codename" = "jammy" ]; then
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.2.1#egg=python-apt
|
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.2.1#egg=python-apt
|
||||||
else
|
else
|
||||||
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.1.y-xenial#egg=python-apt
|
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@2.8.y#egg=python-apt
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user