D7258: makefile: use python3 by default (BC)

Raphaël Gomès raphael.gomes at octobus.net
Wed Nov 6 17:40:08 EST 2019


I think it's a good idea to try to rip the band-aid sooner than later.

+1 for what Martin said about Linux tests, it would make sense to know 
where we're starting to not have the test suite break on our series for 
Python3 reasons.

On 11/6/19 7:43 PM, indygreg (Gregory Szorc) wrote:
> 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list