changeset 38721 | dbbe45ae5ad1 |
parent 38207 | db9d1dd01bf0 |
child 39210 | 1ddb296e0dee |
--- a/setup.py Thu Jun 21 18:05:55 2018 +0200 +++ b/setup.py Mon Jul 16 17:47:58 2018 -0700 @@ -74,7 +74,7 @@ badpython = True # Allow Python 3 from source checkouts. - if os.path.isdir('.hg'): + if os.path.isdir('.hg') or 'HGPYTHON3' in os.environ: badpython = False if badpython: @@ -369,7 +369,7 @@ from mercurial import __version__ version = __version__.version except ImportError: - version = 'unknown' + version = b'unknown' finally: if oldpolicy is None: del os.environ['HGMODULEPOLICY']