##// END OF EJS Templates
setup: inline now-constant list...
Augie Fackler -
r49687:b07b034c default
parent child Browse files
Show More
@@ -773,14 +773,10 b' class buildhgexe(build_ext):'
773 f.write(b'/* this file is autogenerated by setup.py */\n')
773 f.write(b'/* this file is autogenerated by setup.py */\n')
774 f.write(b'#define HGPYTHONLIB "%s"\n' % pythonlib)
774 f.write(b'#define HGPYTHONLIB "%s"\n' % pythonlib)
775
775
776 macros = None
777 if sys.version_info[0] >= 3:
778 macros = [('_UNICODE', None), ('UNICODE', None)]
779
780 objects = self.compiler.compile(
776 objects = self.compiler.compile(
781 ['mercurial/exewrapper.c'],
777 ['mercurial/exewrapper.c'],
782 output_dir=self.build_temp,
778 output_dir=self.build_temp,
783 macros=macros,
779 macros=[('_UNICODE', None), ('UNICODE', None)],
784 )
780 )
785 self.compiler.link_executable(
781 self.compiler.link_executable(
786 objects, self.hgtarget, libraries=[], output_dir=self.build_temp
782 objects, self.hgtarget, libraries=[], output_dir=self.build_temp
General Comments 0
You need to be logged in to leave comments. Login now