Skip to content

Commit 1d90364

Browse files
Regen the global objects using PYTHON_FOR_REGEN. (gh-31344)
https://bugs.python.org/issue46541
1 parent 04215a4 commit 1d90364

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile.pre.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1176,8 +1176,8 @@ regen-importlib: regen-frozen
11761176
# Global objects
11771177

11781178
.PHONY: regen-global-objects
1179-
regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py $(FREEZE_MODULE_DEPS)
1180-
$(PYTHON_FOR_FREEZE) $(srcdir)/Tools/scripts/generate_global_objects.py
1179+
regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py
1180+
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/scripts/generate_global_objects.py
11811181

11821182
############################################################################
11831183
# ABI

Tools/scripts/generate_global_objects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66

77

8-
assert os.path.isabs(__file__), __file__
8+
__file__ = os.path.abspath(__file__)
99
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
1010
INTERNAL = os.path.join(ROOT, 'Include', 'internal')
1111

0 commit comments

Comments
 (0)