We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b359b96 + a30dd1c commit 8ca63acCopy full SHA for 8ca63ac
1 file changed
inc/python
@@ -49,16 +49,9 @@ function get_python_exec_prefix {
49
fi
50
$xtrace
51
52
- if python3_enabled && [[ "$os_VENDOR" == "CentOS" ]] || \
53
- [[ "$os_VENDOR" == "Fedora" && $os_RELEASE -gt 26 ]]; then
54
- # Default Python 3 install prefix changed to /usr/local in Fedora 27:
55
- # https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
56
- echo "/usr/local/bin"
57
- elif is_fedora || is_suse; then
58
- echo "/usr/bin"
59
- else
60
61
- fi
+ local PYTHON_PATH=/usr/local/bin
+ ( is_fedora && ! python3_enabled ) || is_suse && PYTHON_PATH=/usr/bin
+ echo $PYTHON_PATH
62
}
63
64
# Wrapper for ``pip install`` that only installs versions of libraries
0 commit comments