Merge pull request #399 from WordOps/updating-configuration

Fix wo install
This commit is contained in:
VirtuBox
2021-09-15 18:02:22 +02:00
committed by GitHub

16
install
View File

@@ -441,12 +441,16 @@ wo_install() {
cd || exit 1
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
@@ -496,12 +500,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