[Python-checkins] gh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-98779)

miss-islington webhook-mailer at python.org
Fri Oct 28 07:32:22 EDT 2022


https://github.com/python/cpython/commit/5a8c4b9464fedb7c0e1150d69d3e12b479138d07
commit: 5a8c4b9464fedb7c0e1150d69d3e12b479138d07
branch: main
author: Miro Hrončok <miro at hroncok.cz>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-28T04:31:33-07:00
summary:

gh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-98779)



Fixes https://github.com/python/cpython/issues/98776

Automerge-Triggered-By: GH:erlend-aasland

files:
A Misc/NEWS.d/next/Build/2022-10-27-19-47-31.gh-issue-98776.lt_UOG.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 6ab1422c7898..9b35398c4fe7 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -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
index 000000000000..049f13463b8c
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-10-27-19-47-31.gh-issue-98776.lt_UOG.rst
@@ -0,0 +1 @@
+Fix ``make regen-test-levenshtein`` for out-of-tree builds.



More information about the Python-checkins mailing list