227 yield module |
227 yield module |
228 |
228 |
229 cmdclass = {'build_mo': hgbuildmo, |
229 cmdclass = {'build_mo': hgbuildmo, |
230 'build_py': hgbuildpy} |
230 'build_py': hgbuildpy} |
231 |
231 |
|
232 packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert', |
|
233 'hgext.highlight', 'hgext.zeroconf'] |
|
234 |
|
235 pymodules = [] |
|
236 |
232 extmodules = [ |
237 extmodules = [ |
233 Extension('mercurial.base85', ['mercurial/base85.c']), |
238 Extension('mercurial.base85', ['mercurial/base85.c']), |
234 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
239 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
235 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c']), |
240 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c']), |
236 Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
241 Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
237 Extension('mercurial.parsers', ['mercurial/parsers.c']), |
242 Extension('mercurial.parsers', ['mercurial/parsers.c']), |
238 Extension('mercurial.osutil', ['mercurial/osutil.c']), |
|
239 ] |
243 ] |
240 |
244 |
241 packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert', |
245 # disable osutil.c under windows + python 2.4 (issue1364) |
242 'hgext.highlight', 'hgext.zeroconf'] |
246 if sys.platform == 'win32' and sys.version_info < (2, 5, 0, 'final'): |
|
247 pymodules.append('mercurial.pure.osutil') |
|
248 else: |
|
249 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) |
243 |
250 |
244 if sys.platform == 'linux2' and os.uname()[2] > '2.6': |
251 if sys.platform == 'linux2' and os.uname()[2] > '2.6': |
245 # The inotify extension is only usable with Linux 2.6 kernels. |
252 # The inotify extension is only usable with Linux 2.6 kernels. |
246 # You also need a reasonably recent C library. |
253 # You also need a reasonably recent C library. |
247 cc = new_compiler() |
254 cc = new_compiler() |
286 url='http://mercurial.selenic.com/', |
293 url='http://mercurial.selenic.com/', |
287 description='Scalable distributed SCM', |
294 description='Scalable distributed SCM', |
288 license='GNU GPLv2+', |
295 license='GNU GPLv2+', |
289 scripts=scripts, |
296 scripts=scripts, |
290 packages=packages, |
297 packages=packages, |
|
298 py_modules=pymodules, |
291 ext_modules=extmodules, |
299 ext_modules=extmodules, |
292 data_files=datafiles, |
300 data_files=datafiles, |
293 package_data=packagedata, |
301 package_data=packagedata, |
294 cmdclass=cmdclass, |
302 cmdclass=cmdclass, |
295 options=dict(py2exe=dict(packages=['hgext', 'email']), |
303 options=dict(py2exe=dict(packages=['hgext', 'email']), |