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