setup.py
changeset 42075 456c37433c43
parent 42074 59b1bdf85b1a
child 42172 71d8b4d91616
equal deleted inserted replaced
42074:59b1bdf85b1a 42075:456c37433c43
   581         returncode, out, err = runcmd([sys.executable, '-c', code],
   581         returncode, out, err = runcmd([sys.executable, '-c', code],
   582                                       localhgenv())
   582                                       localhgenv())
   583         if err or returncode != 0:
   583         if err or returncode != 0:
   584             raise DistutilsExecError(err)
   584             raise DistutilsExecError(err)
   585 
   585 
   586         with open(self._indexfilename, 'w') as f:
   586         with open(self._indexfilename, 'wb') as f:
   587             f.write('# this file is autogenerated by setup.py\n')
   587             f.write(b'# this file is autogenerated by setup.py\n')
   588             f.write('docs = ')
   588             f.write(b'docs = ')
   589             f.write(out)
   589             f.write(out)
   590 
   590 
   591 class buildhgexe(build_ext):
   591 class buildhgexe(build_ext):
   592     description = 'compile hg.exe from mercurial/exewrapper.c'
   592     description = 'compile hg.exe from mercurial/exewrapper.c'
   593     user_options = build_ext.user_options + [
   593     user_options = build_ext.user_options + [