equal
deleted
inserted
replaced
295 for ext in self.distribution.ext_modules: |
295 for ext in self.distribution.ext_modules: |
296 if ext.name.startswith("mercurial."): |
296 if ext.name.startswith("mercurial."): |
297 self.py_modules.append("mercurial.pure.%s" % ext.name[10:]) |
297 self.py_modules.append("mercurial.pure.%s" % ext.name[10:]) |
298 self.distribution.ext_modules = [] |
298 self.distribution.ext_modules = [] |
299 else: |
299 else: |
300 if not os.path.exists(os.path.join(get_python_inc(), 'Python.h')): |
300 h = os.path.join(get_python_inc(), 'Python.h') |
|
301 if not os.path.exists(h): |
301 raise SystemExit('Python headers are required to build ' |
302 raise SystemExit('Python headers are required to build ' |
302 'Mercurial') |
303 'Mercurial but weren\'t found in %s' % h) |
303 |
304 |
304 def find_modules(self): |
305 def find_modules(self): |
305 modules = build_py.find_modules(self) |
306 modules = build_py.find_modules(self) |
306 for module in modules: |
307 for module in modules: |
307 if module[0] == "mercurial.pure": |
308 if module[0] == "mercurial.pure": |
425 extmodules = [ |
426 extmodules = [ |
426 Extension('mercurial.base85', ['mercurial/base85.c']), |
427 Extension('mercurial.base85', ['mercurial/base85.c']), |
427 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
428 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
428 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c']), |
429 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c']), |
429 Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
430 Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
430 Extension('mercurial.parsers', ['mercurial/parsers.c', |
431 Extension('mercurial.parsers', ['mercurial/dirs.c', |
|
432 'mercurial/parsers.c', |
431 'mercurial/pathencode.c']), |
433 'mercurial/pathencode.c']), |
432 ] |
434 ] |
433 |
435 |
434 osutil_ldflags = [] |
436 osutil_ldflags = [] |
435 |
437 |