##// END OF EJS Templates
Allow to run setup.py with python 3 without a mercurial checkout...
Mike Hommey -
r38743:7d8aa074 @84 default draft obsolete
parent child Browse files
Show More
@@ -74,7 +74,7 b' if sys.version_info[0] != 2:'
74 74 badpython = True
75 75
76 76 # Allow Python 3 from source checkouts.
77 if os.path.isdir('.hg'):
77 if os.path.isdir('.hg') or 'HGPYTHON3' in os.environ:
78 78 badpython = False
79 79
80 80 if badpython:
@@ -369,7 +369,7 b' try:'
369 369 from mercurial import __version__
370 370 version = __version__.version
371 371 except ImportError:
372 version = 'unknown'
372 version = b'unknown'
373 373 finally:
374 374 if oldpolicy is None:
375 375 del os.environ['HGMODULEPOLICY']
General Comments 0
You need to be logged in to leave comments. Login now