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.
.PHONY: regen-unicodedata
regen-unicodedata:
- $(PYTHON_FOR_REGEN) Tools/unicode/makeunicodedata.py
+ $(PYTHON_FOR_REGEN) $(srcdir)/Tools/unicode/makeunicodedata.py
############################################################################
--- /dev/null
+Make ``make regen-unicodedata`` work for out-of-tree builds of CPython.
-/* 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 */
-/* 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
-/* 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[] = {