equal
deleted
inserted
replaced
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 + [ |