Patchwork D7258: makefile: use Python 3 by default (BC)

login
register
mail settings
Submitter phabricator
Date Nov. 5, 2020, 4:21 p.m.
Message ID <920a59e720f4391483b48a579ac359e4@localhost.localdomain>
Download mbox | patch
Permalink /patch/47548/
State Not Applicable
Headers show

Comments

phabricator - Nov. 5, 2020, 4:21 p.m.
Closed by commit rHGc2837640aeb0: makefile: use Python 3 by default (BC) (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7258?vs=23421&id=23422

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7258/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7258

AFFECTED FILES
  Makefile

CHANGE DETAILS




To: indygreg, #hg-reviewers, martinvonz, mharbison72, durin42
Cc: mercurial-patches, yuja, mharbison72, durin42, dlax, martinvonz, mercurial-devel

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,16 @@ 
 # % make PREFIX=/opt/ install
 
 export PREFIX=/usr/local
+
+# Default to Python 3.
+#
+# Windows ships Python 3 as `python.exe`.
+ifeq ($(OS),Windows_NT)
 PYTHON?=python
+else
+PYTHON?=python3
+endif
+
 $(eval HGROOT := $(shell pwd))
 HGPYTHONS ?= $(HGROOT)/build/pythons
 PURE=