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 "Joe McDonnell (Jira)" <ji...@apache.org> on 2023/02/28 19:22:00 UTC
[jira] [Resolved] (IMPALA-11951) Add a script that compiles the python code with Python 2 and Python 3
[ https://issues.apache.org/jira/browse/IMPALA-11951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe McDonnell resolved IMPALA-11951.
------------------------------------
Fix Version/s: Impala 4.3.0
Resolution: Fixed
> Add a script that compiles the python code with Python 2 and Python 3
> ---------------------------------------------------------------------
>
> Key: IMPALA-11951
> URL: https://issues.apache.org/jira/browse/IMPALA-11951
> Project: IMPALA
> Issue Type: Sub-task
> Components: Infrastructure
> Affects Versions: Impala 4.3.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
> Fix For: Impala 4.3.0
>
>
> One prerequisite for using Python 3 is fixing all syntax errors across all our Python code. We should add a script that compiles every python files with Python 2 and Python 3 to verify that the syntax is ok. Once clean, this should run as part of GVO.
> For example, Python has a compileall functionality that can be used:
> {noformat}
> python3 -m compileall {python file}{noformat}
> This is also a good time to add future as a pypi dependency (provides the futurize script and some libraries for writing py2/py3 code).
--
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