Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8508 Use Python 3 from toolchain for impala-python
  3. IMPALA-11951

Add a script that compiles the python code with Python 2 and Python 3

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.3.0
    • Infrastructure
    • None
    • ghx-label-9

    Description

      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:

      python3 -m compileall {python file}

      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).

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: