[
https://issues.apache.org/jira/browse/KUDU-3467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marton Greber updated KUDU-3467:
--------------------------------
Component/s: python
> bootstrap-python-env.sh doesn't work with python3 below 3.7
> -----------------------------------------------------------
>
> Key: KUDU-3467
> URL: https://issues.apache.org/jira/browse/KUDU-3467
> Project: Kudu
> Issue Type: Bug
> Components: python
> Reporter: Marton Greber
> Priority: Minor
>
> For example:
> ERROR: This script does not work on Python 3.2 The minimum supported Python
> version is 3.7. Please use https://bootstrap.pypa.io/pip/3.2/get-pip.py
> instead.
> In kudu/docker/bootstrap-python-env.sh:
> {code:python}
> # We use get-pip.py to bootstrap pip outside of system packages.
> # This prevents issues with the platform package manager knowing
> # about only some of the python packages.
> if [[ "$PYTHON_MAJOR" == "2" && "$PYTHON_MINOR" == "7" ]]; then
> # The standard get-pip.py URL no longer supports Python 2.7,
> # so we need to use the version specific one.
> curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python
> else
> # Use a stable version of pip that works with Python 2 and 3.
> curl https://bootstrap.pypa.io/get-pip.py | python - "pip < 20.3.4"
> fi
> {code}
> The url: https://bootstrap.pypa.io/get-pip.py has a minimum Python3 version
> requirement of 3.7.
> We would need another if statement to cover <3.7. The error message shows the
> url type which should be used:
> ttps://bootstrap.pypa.io/pip/<python_version>/get-pip.py
--
This message was sent by Atlassian Jira
(v8.20.10#820010)