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:
Miro Hrončok 2023-11-15 17:42:17 +01:00 committed by GitHub
parent 58469244be
commit ec05507367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View File

@ -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
############################################################################

View File

@ -0,0 +1 @@
Make ``make regen-unicodedata`` work for out-of-tree builds of CPython.

View File

@ -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 */

View File

@ -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

View File

@ -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[] = {