travis python version skip fix

This commit is contained in:
Peter Šurda 2021-02-14 09:30:40 +01:00
parent 6d19239517
commit 43bf23e4e7
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -163,6 +163,7 @@ if [[ "$(declare -p travis_python)" =~ "declare -a" ]]; then
ppath=/usr/bin/python$pv ppath=/usr/bin/python$pv
if [ -n "$TRAVIS_PYTHON" ] && [ "$TRAVIS_PYTHON" != "$pv" ]; then if [ -n "$TRAVIS_PYTHON" ] && [ "$TRAVIS_PYTHON" != "$pv" ]; then
echo "skipping python-$pv due to TRAVIS_PYTHON=$TRAVIS_PYTHON" echo "skipping python-$pv due to TRAVIS_PYTHON=$TRAVIS_PYTHON"
continue
fi fi
#if [ ! -e "$ppath" ]; then #if [ ! -e "$ppath" ]; then
sudo apt -y install "python$pv" "python${pv}-dev" sudo apt -y install "python$pv" "python${pv}-dev"