Fix travis install

This commit is contained in:
VirtuBox
2020-10-25 18:30:03 +01:00
parent b5db63ff82
commit 4fe0bfadb7

16
install
View File

@@ -462,11 +462,17 @@ wo_travis_install() {
rm -rf dist rm -rf dist
fi fi
if [ -f ./setup.py ]; then if [ -f ./setup.py ]; then
python3 setup.py sdist bdist_wheel if [ -d /opt/wo ]; then
mkdir -p /opt/wo cd /opt/wo || exit 1
python3 -m venv --system-site-packages /opt/wo source bin/activate
source /opt/wo/bin/activate else
python3 -m pip install --upgrade dist/*.whl mkdir -p /opt/wo
cd /opt || exit 1
python3 -m venv --system-site-packages wo
source wo/bin/activate
fi
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -U "git+git://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops"
else else
python3 -m pip install -U "git+git://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops" python3 -m pip install -U "git+git://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops"
fi fi