You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Out of tree build of Python 3.12.0a1+ breaks regen-test-levenshtein #98776
In Fedora, when building Python 3.12.0a1 with Python 3.12.0a1 for regen, we found that regen-test-levenshtein fails. It is not necessary to use Python 3.12.0a1 for regen to trigger the failure:
To reproduce:
# from the root cpython directory
$ mkdir outoftree
$ cd outoftree
$ ../configure
$ make regen-test-levenshtein
...
# Regenerate Lib/test/levenshtein_examples.json
python3.10 ../Tools/build/generate_levenshtein_examples.py Lib/test/levenshtein_examples.json
Traceback (most recent call last):
File ".../cpython/outoftree/../Tools/build/generate_levenshtein_examples.py", line 70, in <module>
main()
File ".../cpython/outoftree/../Tools/build/generate_levenshtein_examples.py", line 65, in main
with open(output_path, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '.../cpython/outoftree/Lib/test/levenshtein_examples.json'
make: *** [Makefile:1092: regen-test-levenshtein] Error 1
Your environment
CPython versions tested on: Python 3.12.0a1 or the current main branch
Operating system and architecture: Fedora Linux x86_64
Activity
Fix make regen-test-levenshtein for out-of-tree builds
pythongh-98776: Fix make regen-test-levenshtein for out-of-tree builds
00390: pythongh-98776: Fix make regen-test-levenshtein for out-of-tre…
gh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-…
pythongh-98776: Fix make regen-test-levenshtein for out-of-tree builds (
00390: pythongh-98776: Fix make regen-test-levenshtein for out-of-tre…