Show More
@@ -8,7 +8,7 b' from distutils.command.build_py import b' | |||
|
8 | 8 | from lib2to3.refactor import get_fixers_from_package as getfixers |
|
9 | 9 | |
|
10 | 10 | import sys |
|
11 |
if |
|
|
11 | if getattr(sys, 'version_info', (0, 0, 0)) < (2, 4, 0, 'final'): | |
|
12 | 12 | raise SystemExit("Mercurial requires Python 2.4 or later.") |
|
13 | 13 | |
|
14 | 14 | if sys.version_info[0] >= 3: |
@@ -236,7 +236,7 b' class hgbuildext(build_ext):' | |||
|
236 | 236 | try: |
|
237 | 237 | build_ext.build_extension(self, ext) |
|
238 | 238 | except CCompilerError: |
|
239 |
if |
|
|
239 | if getattr(ext, 'optional', False): | |
|
240 | 240 | raise |
|
241 | 241 | log.warn("Failed to build optional extension '%s' (skipping)", |
|
242 | 242 | ext.name) |
General Comments 0
You need to be logged in to leave comments.
Login now