[ 
https://issues.apache.org/jira/browse/IMPALA-13368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906289#comment-17906289
 ] 

ASF subversion and git services commented on IMPALA-13368:
----------------------------------------------------------

Commit 5b4afb4f8f2c12aaff7454101be79acce87662b8 in impala's branch 
refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=5b4afb4f8 ]

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 <[email protected]>
Reviewed-by: Riza Suminto <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Drop dependency on platform.linux_distribution to support Python 3.8
> --------------------------------------------------------------------
>
>                 Key: IMPALA-13368
>                 URL: https://issues.apache.org/jira/browse/IMPALA-13368
>             Project: IMPALA
>          Issue Type: Sub-task
>          Components: Infrastructure
>    Affects Versions: Impala 4.5.0
>            Reporter: Joe McDonnell
>            Priority: Major
>
> In Python 3.8, the platform.linux_distribution() functionality was removed 
> (it had been deprecated for some time). Some test code in 
> tests/common/environ.py uses this to detect Redhat. This could be switched to 
> the "distro" package on PyPi: [https://pypi.org/project/distro/]
> However, it looks like this is mainly about detecting whether OpenSSL/Python2 
> support TLSv1.2 properly. All the usages look obsolete, so this probably can 
> simply be removed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to