bpo-42955: Add Python/module_names.h (GH-24258)

Add a private list of all stdlib modules: _Py_module_names.

* Add Tools/scripts/generate_module_names.py script.
* Makefile: Add "make regen-module-names" command.
* setup.py: Add --list-module-names option.
* GitHub Action and Travis CI also runs "make regen-module-names",
  not ony "make regen-all", to ensure that the module names remains
  up to date.
This commit is contained in:
Victor Stinner 2021-01-19 23:04:49 +01:00 • committed by GitHub
parent e8e66eab94
commit cad8020cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 592 additions and 18 deletions

View file

@ -172,6 +172,7 @@ before_script:
- eval "$(pyenv init -)"
- pyenv global 3.8
- PYTHON_FOR_REGEN=python3.8 make -j4 regen-all
- make regen-module-names
- changes=`git status --porcelain`
- |
# Check for changes in regenerated files