From c759706686abb421879148410adced34e44333f2 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Thu, 28 Feb 2019 11:20:36 +0000 Subject: [PATCH] support python 3 on centos 7 when installing with python 3.6 on centos7 pip installs packages to /usr/local/bin as it does on new versions of fedora. this change updates the check to include centos Change-Id: I7d16194d6ba1391ca31251d5b50cbb8de033fc38 --- inc/python | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/python b/inc/python index ec7eb5b9bb..419d5c5701 100644 --- a/inc/python +++ b/inc/python @@ -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"