##// END OF EJS Templates
setup: fix mistake that prevented Python 3 from being excluded...
Augie Fackler -
r33592:ee11d18f stable
parent child Browse files
Show More
@@ -4,8 +4,10 b''
4 # 'python setup.py install', or
4 # 'python setup.py install', or
5 # 'python setup.py --help' for more options
5 # 'python setup.py --help' for more options
6
6
7 import os
8
7 supportedpy = '~= 2.7'
9 supportedpy = '~= 2.7'
8 if 'HGALLOWPYTHON3':
10 if os.environ.get('HGALLOWPYTHON3', ''):
9 # Mercurial will never work on Python 3 before 3.5 due to a lack
11 # Mercurial will never work on Python 3 before 3.5 due to a lack
10 # of % formatting on bytestrings, and can't work on 3.6.0 or 3.6.1
12 # of % formatting on bytestrings, and can't work on 3.6.0 or 3.6.1
11 # due to a bug in % formatting in bytestrings.
13 # due to a bug in % formatting in bytestrings.
@@ -101,7 +103,7 b' else:'
101 ispypy = "PyPy" in sys.version
103 ispypy = "PyPy" in sys.version
102
104
103 import ctypes
105 import ctypes
104 import os, stat, subprocess, time
106 import stat, subprocess, time
105 import re
107 import re
106 import shutil
108 import shutil
107 import tempfile
109 import tempfile
General Comments 0
You need to be logged in to leave comments. Login now