IMPALA-14606: Stop building impala-shell for Python 2

This patch stop setting up and building impala-shell for Python 2.
A more thorough clean up will be done in the future.

Testing:
Pass build and test/shell/ in RHEL8.

Change-Id: Ic7d59b283f4e2f011880ff6221d550b52714a538
Reviewed-on: http://gerrit.cloudera.org:8080/23750
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Riza Suminto
2025-12-04 18:06:48 -08:00
committed by Impala Public Jenkins
parent 1bddbefb2d
commit 3ed2a82a95
5 changed files with 24 additions and 16 deletions

View File

@@ -344,7 +344,9 @@ function setup_python2() {
sudo dnf -y install python2-devel
}
redhat8 setup_python2
# IMPALA-14606: Stop building using Python 2 and always run with
# IMPALA_USE_PYTHON3_TESTS=true.
# redhat8 setup_python2
redhat8 pip install --user argparse
# Point Python to Python 3 for Redhat 9 and Ubuntu 22, or newer

View File

@@ -224,7 +224,8 @@ unset IMPALA_MOLD_URL
export IMPALA_SIMBA_JDBC_DRIVER_VERSION=42-2.6.32.1041
# Find system python versions for testing
export IMPALA_SYSTEM_PYTHON2="${IMPALA_SYSTEM_PYTHON2_OVERRIDE-$(command -v python2)}"
# IMPALA-14606: Stop building impala_python (Python 2) by default.
export IMPALA_SYSTEM_PYTHON2="${IMPALA_SYSTEM_PYTHON2_OVERRIDE-}"
export IMPALA_SYSTEM_PYTHON3="${IMPALA_SYSTEM_PYTHON3_OVERRIDE-$(command -v python3)}"
# Additional Python versions to use when building the impala-shell prebuilt tarball