Show More
@@ -335,6 +335,19 class buildhgextindex(Command): | |||
|
335 | 335 | f.write(out) |
|
336 | 336 | f.close() |
|
337 | 337 | |
|
338 | class buildhgexe(build_ext): | |
|
339 | description = 'compile hg.exe from mercurial/exewrapper.c' | |
|
340 | ||
|
341 | def build_extensions(self): | |
|
342 | if os.name != 'nt': | |
|
343 | return | |
|
344 | objects = self.compiler.compile(['mercurial/exewrapper.c'], | |
|
345 | output_dir=self.build_temp) | |
|
346 | dir = os.path.dirname(self.get_ext_fullpath('dummy')) | |
|
347 | target = os.path.join(dir, 'hg') | |
|
348 | self.compiler.link_executable(objects, target, | |
|
349 | output_dir=self.build_temp) | |
|
350 | ||
|
338 | 351 | class hginstallscripts(install_scripts): |
|
339 | 352 | ''' |
|
340 | 353 | This is a specialization of install_scripts that replaces the @LIBDIR@ with |
@@ -386,7 +399,9 cmdclass = {'build': hgbuild, | |||
|
386 | 399 | 'build_ext': hgbuildext, |
|
387 | 400 | 'build_py': hgbuildpy, |
|
388 | 401 | 'build_hgextindex': buildhgextindex, |
|
389 |
'install_scripts': hginstallscripts |
|
|
402 | 'install_scripts': hginstallscripts, | |
|
403 | 'build_hgexe': buildhgexe, | |
|
404 | } | |
|
390 | 405 | |
|
391 | 406 | packages = ['mercurial', 'mercurial.hgweb', 'mercurial.httpclient', |
|
392 | 407 | 'hgext', 'hgext.convert', 'hgext.highlight', 'hgext.zeroconf', |
General Comments 0
You need to be logged in to leave comments.
Login now