Merge pull request #648 from WordOps/updating-configuration

Fix install script python dependencies
This commit is contained in:
VirtuBox
2024-05-22 18:18:26 +02:00
committed by GitHub
3 changed files with 17 additions and 7 deletions

View File

@@ -8,6 +8,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### v3.21.0 - [Unreleased]
#### Added
- Ubuntu 24.04 LTS support
- New Nginx package with HTTP/3 QUIC support
#### Security
- Fix [CVE-2024-34528](https://github.com/advisories/GHSA-23qq-p4gq-gc2g)
### v3.20.0 - 2024-04-21
#### Added

View File

@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2018-2019 WordOps (https://github.com/WordOps/WordOps/graphs/contributors)
Copyright (c) 2018-2024 WordOps (https://github.com/WordOps/WordOps/graphs/contributors)
Copyright (C) 2011-2017 EE Development Group (https://github.com/ee/ee/contributors)
Permission is hereby granted, free of charge, to any person obtaining a copy

12
install
View File

@@ -440,14 +440,14 @@ wo_install() {
cd /usr/local/lib/python3."$python_ver"/dist-packages || exit 1
fi
if [ "$wo_distro_codename" != "bookworm" ]; then
/opt/wo/bin/pip uninstall -yq wo wordops ee
pip uninstall -yq wo wordops ee
fi
cd || exit 1
if [ -d /opt/wo/lib/python3."$python_ver"/site-packages/apt ]; then
source /opt/wo/bin/activate
/opt/wo/bin/pip install -U setuptools
/opt/wo/bin/pip install -U pip wheel
/opt/wo/bin/pip install -U pip wheel distro
/opt/wo/bin/pip uninstall psutil -y
/opt/wo/bin/pip uninstall SQLAlchemy -y
else
@@ -481,9 +481,9 @@ wo_install() {
fi
if [ "$wo_branch" = "master" ]; then
/opt/wo/bin/pip install -U wordops
/opt/wo/bin/pip install -U wordops --upgrade-strategy=eager
else
/opt/wo/bin/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" --upgrade-strategy=eager
fi
local python_venv
python_venv=$(python3 -c "import sys; print(sys.version_info[1])")
@@ -544,9 +544,9 @@ wo_travis_install() {
fi
fi
fi
/opt/wo/bin/pip install -U .
/opt/wo/bin/pip install -U . --upgrade-strategy=eager
else
/opt/wo/bin/pip install -U "git+https://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops"
/opt/wo/bin/pip install -U "git+https://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops" --upgrade-strategy=eager
fi
cp -rf /opt/wo/lib/python3."$python_ver"/site-packages/usr/* /usr/
cp -rn /opt/wo/lib/python3."$python_ver"/site-packages/etc/* /etc/