Force DIB_PYTHON_VERSION to 3 for Debian
Since more and more python libraries are removing support for Python 2 in the latest versions, we need to force the version of Python used to build the DIB Debian image to 3, at least until DIB fully converts to Python 3. Change-Id: I8e6f15635754ab917562d758c35a8c5f4629efdf
This commit is contained in:
parent
ca27668c00
commit
044ae3f2d6
@ -4,3 +4,9 @@ if [[ $DISTRO_NAME =~ (fedora|centos|centos7|rhel|rhel7) ]]; then
|
||||
else
|
||||
export IPA_DISTRO_FAMILY=other
|
||||
fi
|
||||
|
||||
# NOTE(rpittau) force Python version to 3 for debian
|
||||
if [[ $DISTRO_NAME =~ debian ]]; then
|
||||
DIB_PYTHON_VERSION=3
|
||||
export DIB_PYTHON_VERSION
|
||||
fi
|
||||
|
@ -34,7 +34,8 @@
|
||||
},
|
||||
"debian": {
|
||||
"tgt": "tgt",
|
||||
"curl": "curl"
|
||||
"curl": "curl",
|
||||
"python-dev": "python3-dev"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
|
Loading…
Reference in New Issue
Block a user