Fix travis
This commit is contained in:
6
install
6
install
@@ -479,6 +479,10 @@ wo_install() {
|
|||||||
wo_travis_install() {
|
wo_travis_install() {
|
||||||
local python_ver
|
local python_ver
|
||||||
python_ver=$(python3 -c "import sys; print(sys.version_info[1])")
|
python_ver=$(python3 -c "import sys; print(sys.version_info[1])")
|
||||||
|
local wo_distro_codename
|
||||||
|
wo_distro_codename=$(lsb_release -sc)
|
||||||
|
local wo_linux_distro
|
||||||
|
wo_linux_distro=$(lsb_release -is)
|
||||||
if [ -d ./dist ]; then
|
if [ -d ./dist ]; then
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
fi
|
fi
|
||||||
@@ -492,7 +496,7 @@ wo_travis_install() {
|
|||||||
source /opt/wo/bin/activate
|
source /opt/wo/bin/activate
|
||||||
python3 -m pip install -U pip setuptools wheel
|
python3 -m pip install -U pip setuptools wheel
|
||||||
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
|
if [ "$wo_linux_distro" = "Debian" ] || [ "$wo_linux_distro" = "Raspbian" ]; then
|
||||||
if [ "$wo_distro_codename" = "strech" ]; 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
|
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.4.y#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
|
python3 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.8.4.y#egg=python-apt
|
||||||
|
|||||||
Reference in New Issue
Block a user