From patchwork Wed Nov 6 18:43:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7258: makefile: use python3 by default (BC) From: phabricator X-Patchwork-Id: 42809 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Wed, 6 Nov 2019 18:43:27 +0000 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 To: indygreg, #hg-reviewers Cc: mercurial-devel 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=