Skip to content

concerning Python version for src/etc/char_private.py #45567

Closed
@zackmdavis

Description

@zackmdavis

src/etc/char_private.py is used to generate src/libcore/char_private.rs (which is checked in to the repository, so the script is to be run by a developer making a change to it, not the build system).

char_private.py requires Python 3.5+—it uses FileNotFoundError (introduced in Python 3) and subprocess.run (introduced in Python 3.5)—which is slightly surprising, given that the build dependencies section in the repository's README lists "python 2.7 (but not 3.x)".

It almost pains me to report this, because if at all possible, I'd rather not edit the script: there is enough Python 2 code in the world; if we are ever to free ourselves from the dead hand of the past, it is intendant on technical pioneers like us to listen when told that the month of July 2010 called while we were out and they want their programming language back. Still, it is valuable to (first and foremost) document and (secondarily) be consistent about what we require.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions