Joe McDonnell created IMPALA-11951:
--------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]