##// END OF EJS Templates
use writelines when writing _sysinfo.py
MinRK -
Show More
@@ -351,9 +351,8 b' def record_commit_info(pkg_dir, build_cmd=build_py):'
351 # We write the installation commit even if it's empty
351 # We write the installation commit even if it's empty
352 out_pth = pjoin(self.build_lib, pkg_dir, 'utils', '_sysinfo.py')
352 out_pth = pjoin(self.build_lib, pkg_dir, 'utils', '_sysinfo.py')
353 with io.open(out_pth, 'w') as out_file:
353 with io.open(out_pth, 'w') as out_file:
354 for line in [
354 out_file.writelines([
355 u"# GENERATED BY setup.py",
355 u"# GENERATED BY setup.py\n",
356 u"commit = '%s'" % repo_commit,
356 u"commit = '%s'\n" % repo_commit,
357 ]:
357 ])
358 out_file.write(line + u'\n')
359 return MyBuildPy
358 return MyBuildPy
General Comments 0
You need to be logged in to leave comments. Login now