D7258: makefile: use Python 3 by default (BC)
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Nov 21 22:02:02 EST 2019
This revision is now accepted and ready to land.
indygreg edited the summary of this revision.
indygreg retitled this revision from "makefile: use python3 by default (BC)" to "makefile: use Python 3 by default (BC)".
indygreg updated this revision to Diff 18276.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7258?vs=17627&id=18276
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7258/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7258
AFFECTED FILES
Makefile
CHANGE DETAILS
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,14 @@
# % make PREFIX=/opt/ install
export PREFIX=/usr/local
-PYTHON?=python
+
+# There is no python3.exe on Windows. So use the py.exe wrapper.
+ifeq($(OS),Windows_NT)
+PYTHON?=py -3
+else
+PYTHON?=python3
+endif
+
$(eval HGROOT := $(shell pwd))
HGPYTHONS ?= $(HGROOT)/build/pythons
PURE=
To: indygreg, #hg-reviewers, martinvonz
Cc: yuja, mharbison72, durin42, dlax, martinvonz, mercurial-devel
More information about the Mercurial-devel
mailing list