##// END OF EJS Templates
setup: compile hg.exe...
Adrian Buehlmann -
r17061:f20e4d76 default
parent child Browse files
Show More
@@ -335,6 +335,19 b' class buildhgextindex(Command):'
335 f.write(out)
335 f.write(out)
336 f.close()
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 class hginstallscripts(install_scripts):
351 class hginstallscripts(install_scripts):
339 '''
352 '''
340 This is a specialization of install_scripts that replaces the @LIBDIR@ with
353 This is a specialization of install_scripts that replaces the @LIBDIR@ with
@@ -386,7 +399,9 b" cmdclass = {'build': hgbuild,"
386 'build_ext': hgbuildext,
399 'build_ext': hgbuildext,
387 'build_py': hgbuildpy,
400 'build_py': hgbuildpy,
388 'build_hgextindex': buildhgextindex,
401 'build_hgextindex': buildhgextindex,
389 'install_scripts': hginstallscripts}
402 'install_scripts': hginstallscripts,
403 'build_hgexe': buildhgexe,
404 }
390
405
391 packages = ['mercurial', 'mercurial.hgweb', 'mercurial.httpclient',
406 packages = ['mercurial', 'mercurial.hgweb', 'mercurial.httpclient',
392 'hgext', 'hgext.convert', 'hgext.highlight', 'hgext.zeroconf',
407 'hgext', 'hgext.convert', 'hgext.highlight', 'hgext.zeroconf',
General Comments 0
You need to be logged in to leave comments. Login now