Merge "Fixed support python 2 on Fedora 27"
This commit is contained in:
commit
8ca63acff8
13
inc/python
13
inc/python
@ -49,16 +49,9 @@ function get_python_exec_prefix {
|
|||||||
fi
|
fi
|
||||||
$xtrace
|
$xtrace
|
||||||
|
|
||||||
if python3_enabled && [[ "$os_VENDOR" == "CentOS" ]] || \
|
local PYTHON_PATH=/usr/local/bin
|
||||||
[[ "$os_VENDOR" == "Fedora" && $os_RELEASE -gt 26 ]]; then
|
( is_fedora && ! python3_enabled ) || is_suse && PYTHON_PATH=/usr/bin
|
||||||
# Default Python 3 install prefix changed to /usr/local in Fedora 27:
|
echo $PYTHON_PATH
|
||||||
# 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"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Wrapper for ``pip install`` that only installs versions of libraries
|
# Wrapper for ``pip install`` that only installs versions of libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user