Merge "support python 3 on centos 7"

This commit is contained in:
Zuul 2019-03-12 21:35:43 +00:00 committed by Gerrit Code Review
commit 50c6378eef
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ function get_python_exec_prefix {
fi
$xtrace
if python3_enabled && [[ "$os_VENDOR" == "Fedora" && $os_RELEASE -gt 26 ]]; then
if python3_enabled && [[ "$os_VENDOR" == "CentOS" ]] || \
[[ "$os_VENDOR" == "Fedora" && $os_RELEASE -gt 26 ]]; then
# Default Python 3 install prefix changed to /usr/local in Fedora 27:
# https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
echo "/usr/local/bin"