D7258: makefile: use python3 by default (BC)

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Wed Nov 6 18:43:27 UTC 2019


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I think the time has come. My main reason for wanting to do this is
  to force Mercurial developers to use Python 3 in their day-to-day work.
  This should help flush out any remaining Python 3 bugs.
  
  If this change is too controversial, we can revert it before the next
  release.
  
  .. bc::
  
    Makefile now uses `python3` instead of `python` by default. This
    means Mercurial will be built and run with Python 3 instead of
    Python 2.7 by default.
    
    To continue using Python 2, set the PYTHON variable. e.g.
    `make install PYTHON=python2.7`.

REPOSITORY
  rHG Mercurial

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,7 @@
 # % make PREFIX=/opt/ install
 
 export PREFIX=/usr/local
-PYTHON?=python
+PYTHON?=python3
 $(eval HGROOT := $(shell pwd))
 HGPYTHONS ?= $(HGROOT)/build/pythons
 PURE=



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list