Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zackmdavis opened this issue Oct 27, 2017 · 1 comment
Closed

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

zackmdavis opened this issue Oct 27, 2017 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@zackmdavis
Copy link
Member

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.

@cuviper
Copy link
Member

cuviper commented Oct 27, 2017

If it's just a maintenance script, not normally needed for building the compiler, then I think it's fine to have its own requirements.

bors added a commit that referenced this issue Nov 7, 2017
…hton

regenerate libcore/char_private.rs

(filed separately from the work in #45569, because of this matter of the updated Unicode data; see also #45567)

char_private.rs is generated programmatically by char_private.py, using data retrieved from the Unicode Consortium's website.

The motivation here was to make `is_printable` crate-visible (with `pub(crate)`), but it would seem that the Unicode data has changed slightly since char_private.rs was last generated.
@pietroalbini pietroalbini added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants