diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-02-14 23:07:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 23:07:09 (GMT) |
commit | 1d9036425e811f2c6c231fbc54159f9e82f91470 (patch) | |
tree | 00ec616ec81c3c92fe63f10fb4dc513cf8dfe531 | |
parent | 04215a427232e55efdc1adcda50a15197f518ca9 (diff) | |
download | cpython-1d9036425e811f2c6c231fbc54159f9e82f91470.zip cpython-1d9036425e811f2c6c231fbc54159f9e82f91470.tar.gz cpython-1d9036425e811f2c6c231fbc54159f9e82f91470.tar.bz2 |
Regen the global objects using PYTHON_FOR_REGEN. (gh-31344)
https://bugs.python.org/issue46541
-rw-r--r-- | Makefile.pre.in | 4 | ||||
-rw-r--r-- | Tools/scripts/generate_global_objects.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index c279cf3..9b08929 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1176,8 +1176,8 @@ regen-importlib: regen-frozen # Global objects .PHONY: regen-global-objects -regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py $(FREEZE_MODULE_DEPS) - $(PYTHON_FOR_FREEZE) $(srcdir)/Tools/scripts/generate_global_objects.py +regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py + $(PYTHON_FOR_REGEN) $(srcdir)/Tools/scripts/generate_global_objects.py ############################################################################ # ABI diff --git a/Tools/scripts/generate_global_objects.py b/Tools/scripts/generate_global_objects.py index b184e74..7306889 100644 --- a/Tools/scripts/generate_global_objects.py +++ b/Tools/scripts/generate_global_objects.py @@ -5,7 +5,7 @@ import re import sys -assert os.path.isabs(__file__), __file__ +__file__ = os.path.abspath(__file__) ROOT = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) INTERNAL = os.path.join(ROOT, 'Include', 'internal') |