You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/12/17 07:30:00 UTC
[jira] [Commented] (IMPALA-13368) Drop dependency on platform.linux_distribution to support Python 3.8
[ 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 <mi...@cloudera.com>
Reviewed-by: Riza Suminto <ri...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
> 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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org