339ecee2b2
Commit 6278371eaa13("Make dib-python use the default python for distro") added default python version for various distros but it missed openSUSE which leads to build failures since the openSUSE elements are pulling python2 packages. Add openSUSE to the list of python2 distributions until python3 support for the openSUSE elements is in place. Change-Id: I95f1fa849a22607c430387a2a915f9d19c9c209f
27 lines
768 B
Plaintext
27 lines
768 B
Plaintext
# Pick which distros we need to force python2
|
|
if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
|
|
if [ "$DISTRO_NAME" == "ubuntu" ]; then
|
|
if [ "$DIB_RELEASE" == "trusty" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
elif [ "$DISTRO_NAME" == "debian" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "fedora" ]; then
|
|
if [ "$DIB_RELEASE" -le 22 ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
elif [ "$DISTRO_NAME" == "centos" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "centos7" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "opensuse" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
fi
|
|
|
|
if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
|
|
DIB_PYTHON_VERSION=3
|
|
fi
|
|
|
|
export DIB_PYTHON_VERSION
|