Merge "Fix Python3 get_python_exec_prefix on Fedora 27"
This commit is contained in:
commit
67d26e2161
|
@ -49,7 +49,11 @@ function get_python_exec_prefix {
|
|||
fi
|
||||
$xtrace
|
||||
|
||||
if is_fedora || is_suse; then
|
||||
if python3_enabled && [ "$os_VENDOR" = "Fedora" -a $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"
|
||||
elif is_fedora || is_suse; then
|
||||
echo "/usr/bin"
|
||||
else
|
||||
echo "/usr/local/bin"
|
||||
|
|
Loading…
Reference in New Issue