mharbison72 added a comment. mharbison72 accepted this revision.
> To continue using Python 2, set the PYTHON variable. e.g. > `make install PYTHON=python2.7` or > `make install PYTHON=py.exe -2`. The "py -2" part needs to be quoted. I'm not super excited to deal with this on Windows just yet, but I can't dispute the rationale. There are two traps for anybody dealing with this on Windows to be aware of: 1. Running `./hg debuginstall` will still run py2, even if it was built with py3. I assume this is the shebang line, and also an issue on other platforms. 2. Running `./hg.exe debuginstall` will run py3, but since that python isn't in $PATH, it complains that it can't find python37.dll and exits. I know @durin42 took a whack at #1; I'm not sure if there's something we can do about #2. (I realize I could just edit $PATH, but it seems that the point of py.exe is to keep python.exe off of $PATH so that multiple installs can be managed. IIRC, it's not added to $PATH by default on installation.) Maybe we can just copy the dll to the local directory as part of setup.py? REPOSITORY rHG Mercurial BRANCH default CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7258/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7258 To: indygreg, #hg-reviewers, martinvonz, mharbison72 Cc: yuja, mharbison72, durin42, dlax, martinvonz, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel