mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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.
This commit is contained in:
parent
58469244be
commit
ec05507367
5 changed files with 5 additions and 4 deletions
|
|
@ -1348,7 +1348,7 @@ regen-limited-abi: all
|
|||
|
||||
.PHONY: regen-unicodedata
|
||||
regen-unicodedata:
|
||||
$(PYTHON_FOR_REGEN) Tools/unicode/makeunicodedata.py
|
||||
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/unicode/makeunicodedata.py
|
||||
|
||||
|
||||
############################################################################
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Make ``make regen-unicodedata`` work for out-of-tree builds of CPython.
|
||||
2
Modules/unicodedata_db.h
generated
2
Modules/unicodedata_db.h
generated
|
|
@ -1,4 +1,4 @@
|
|||
/* this file was generated by Tools/unicode/makeunicodedata.py 3.3 */
|
||||
/* this file was generated by ./Tools/unicode/makeunicodedata.py 3.3 */
|
||||
|
||||
#define UNIDATA_VERSION "15.1.0"
|
||||
/* a list of unique database records */
|
||||
|
|
|
|||
2
Modules/unicodename_db.h
generated
2
Modules/unicodename_db.h
generated
|
|
@ -1,4 +1,4 @@
|
|||
/* this file was generated by Tools/unicode/makeunicodedata.py 3.3 */
|
||||
/* this file was generated by ./Tools/unicode/makeunicodedata.py 3.3 */
|
||||
|
||||
#define NAME_MAXLEN 256
|
||||
|
||||
|
|
|
|||
2
Objects/unicodetype_db.h
generated
2
Objects/unicodetype_db.h
generated
|
|
@ -1,4 +1,4 @@
|
|||
/* this file was generated by Tools/unicode/makeunicodedata.py 3.3 */
|
||||
/* this file was generated by ./Tools/unicode/makeunicodedata.py 3.3 */
|
||||
|
||||
/* a list of unique character type descriptors */
|
||||
const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue