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

Andrew Schwartzmeyer commented on MESOS-8770:
---------------------------------------------

{noformat}
commit ae4e7956a
Author: Andrew Schwartzmeyer <[email protected]>
Date:   Thu May 24 14:58:34 2018 -0700

    Added warning to Python version checker script.

    After the user has installed Python 3, if they use the Python 2
    scripts, we want to alert them to start using (and therefore testing)
    the ported Python 3 scripts.

    Review: https://reviews.apache.org/r/67292/

commit 960df5c48
Author: Armand Grillet <[email protected]>
Date:   Thu May 24 14:58:13 2018 -0700

    Ported all support scripts to Python 3.

    The scripts are in a temporary directory, support/python3.

    The scripts have been ported using 2to3, the official tool to do so.
    Many of these scripts require testing from the community before being
    used by default.

    The script building the virtual environment and the git hooks have
    been updated to use the new scripts if the environment variable
    `MESOSSUPPORTPYTHON` is set to `3` by the user.

    Review: https://reviews.apache.org/r/67059/

commit 71315eb0c
Author: Armand Grillet <[email protected]>
Date:   Thu May 24 14:58:09 2018 -0700

    Added python3 to list of Pylint excluded files.

    This change ensures that pylint will not try to lint the new Python 3
    support scripts if it is not run with Python 3. Having such a situation
    results in unexpected errors such as "Unnecessary parens after 'print'
    keyword". This change will not be applied in the Python 3 mesos-style.

    Review: https://reviews.apache.org/r/67282/

commit 2820028e9
Author: Armand Grillet <[email protected]>
Date:   Thu May 24 14:58:03 2018 -0700

    Updated support scripts to check for Python 3.

    Review: https://reviews.apache.org/r/67099/

commit 7ecb2fef2
Author: Armand Grillet <[email protected]>
Date:   Thu May 24 14:58:00 2018 -0700

    Added support script to check if Python >= 3.6 is available.

    Review: [https://reviews.apache.org/r/67247/]
{noformat}


> Use Python3 for Mesos support scripts
> -------------------------------------
>
>                 Key: MESOS-8770
>                 URL: https://issues.apache.org/jira/browse/MESOS-8770
>             Project: Mesos
>          Issue Type: Task
>            Reporter: Benjamin Bannier
>            Assignee: Armand Grillet
>            Priority: Major
>
> Our Python scripts under {{support/}} currently implicitly assume that 
> developers have a python2 environment as their primary Python installation.
> We should consider updating these scripts so that they can be used with a 
> python3 installation as well. There exist [some 
> resources|http://python-future.org/overview.html#automatic-conversion-to-py2-3-compatible-code]
>  on the web documenting best practices and tools for automatic rewrites which 
> should get us a long way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to