IMPALA-13368: Fixup Redhat detection for Python >= 3.8

Python 3.8 removed the platform.linux_distribution() function which is
currently used to detect Redhat. This switches to using the 'distro'
package, which implements the same functionality across different
Python versions. Since Redhat 6 is no longer supported, this removes
the detection of Redhat 6 and associated skip logic.

Testing:
 - Ran a core job

Change-Id: I0dfaf798c0239f6068f29adbd2eafafdbbfd66c3
Reviewed-on: http://gerrit.cloudera.org:8080/22073
Reviewed-by: Michael Smith <michael.smith@cloudera.com>
Reviewed-by: Riza Suminto <riza.suminto@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Joe McDonnell
2024-09-10 12:29:06 -07:00
parent 5c02190152
commit 5b4afb4f8f
4 changed files with 7 additions and 19 deletions

View File

@@ -61,6 +61,7 @@ texttable == 0.8.3
virtualenv == 16.7.10
avro==1.10.2
thrift==0.16.0
distro==1.6.0
# Required for Kudu:
Cython == 0.29.14