Skip to content

Out of tree build of Python 3.12.0a1+ breaks regen-test-levenshtein #98776

Closed
@hroncok

Description

@hroncok

Bug report

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions