Skip to content

Commit ec05507

Browse files
authored
gh-96954: Fix make regen-unicodedata in out-of-tree builds (#112118)
This avoids: python3.13 Tools/unicode/makeunicodedata.py python3.13: can't open file '.../build/debug/Tools/unicode/makeunicodedata.py': [Errno 2] No such file or directory make: *** [Makefile:1498: regen-unicodedata] Error 2 Re-run `make regen-unicodedata` to update the script path in generated files.
1 parent 5846924 commit ec05507

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ regen-limited-abi: all
13481348

13491349
.PHONY: regen-unicodedata
13501350
regen-unicodedata:
1351-
$(PYTHON_FOR_REGEN) Tools/unicode/makeunicodedata.py
1351+
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/unicode/makeunicodedata.py
13521352

13531353

13541354
############################################################################
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make ``make regen-unicodedata`` work for out-of-tree builds of CPython.

Modules/unicodedata_db.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/unicodename_db.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/unicodetype_db.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)