]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-98779)
authorMiro Hrončok <miro@hroncok.cz>
Fri, 28 Oct 2022 11:31:33 +0000 (13:31 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 11:31:33 +0000 (04:31 -0700)
Fixes https://github.com/python/cpython/issues/98776

Automerge-Triggered-By: GH:erlend-aasland
Makefile.pre.in
Misc/NEWS.d/next/Build/2022-10-27-19-47-31.gh-issue-98776.lt_UOG.rst [new file with mode: 0644]

index 6ab1422c78982a891f8ff83bce51844248889d04..9b35398c4fe767ccc77187f2cb609c502452ca66 100644 (file)
@@ -961,7 +961,7 @@ regen-test-frozenmain: $(BUILDPYTHON)
 .PHONY: regen-test-levenshtein
 regen-test-levenshtein:
        # Regenerate Lib/test/levenshtein_examples.json
-       $(PYTHON_FOR_REGEN) $(srcdir)/Tools/build/generate_levenshtein_examples.py Lib/test/levenshtein_examples.json
+       $(PYTHON_FOR_REGEN) $(srcdir)/Tools/build/generate_levenshtein_examples.py $(srcdir)/Lib/test/levenshtein_examples.json
 
 .PHONY: regen-re
 regen-re: $(BUILDPYTHON)
diff --git a/Misc/NEWS.d/next/Build/2022-10-27-19-47-31.gh-issue-98776.lt_UOG.rst b/Misc/NEWS.d/next/Build/2022-10-27-19-47-31.gh-issue-98776.lt_UOG.rst
new file mode 100644 (file)
index 0000000..049f134
--- /dev/null
@@ -0,0 +1 @@
+Fix ``make regen-test-levenshtein`` for out-of-tree builds.