Show More
@@ -45,6 +45,9 b' def oscmd(s):' | |||
|
45 | 45 | print(">", s) |
|
46 | 46 | os.system(s) |
|
47 | 47 | |
|
48 | # Py3 compatibility hacks, without assuming IPython itself is installed with | |
|
49 | # the full py3compat machinery. | |
|
50 | ||
|
48 | 51 | try: |
|
49 | 52 | execfile |
|
50 | 53 | except NameError: |
@@ -52,6 +55,11 b' except NameError:' | |||
|
52 | 55 | locs = locs or globs |
|
53 | 56 | exec(compile(open(fname).read(), fname, "exec"), globs, locs) |
|
54 | 57 | |
|
58 | try: | |
|
59 | unicode | |
|
60 | except NameError: | |
|
61 | unicode = str | |
|
62 | ||
|
55 | 63 | # A little utility we'll need below, since glob() does NOT allow you to do |
|
56 | 64 | # exclusion on multiple endings! |
|
57 | 65 | def file_doesnt_endwith(test,endings): |
@@ -389,8 +397,8 b' def record_commit_info(pkg_dir, build_cmd=build_py):' | |||
|
389 | 397 | # We write the installation commit even if it's empty |
|
390 | 398 | out_pth = pjoin(self.build_lib, pkg_dir, 'utils', '_sysinfo.py') |
|
391 | 399 | with io.open(out_pth, 'w') as out_file: |
|
392 | out_file.writelines([ | |
|
393 |
|
|
|
394 |
|
|
|
395 | ]) | |
|
400 | out_file.writelines(map(unicode, [ | |
|
401 | '# GENERATED BY setup.py\n', | |
|
402 | 'commit = "%s"\n' % repo_commit, | |
|
403 | ])) | |
|
396 | 404 | return MyBuildPy |
General Comments 0
You need to be logged in to leave comments.
Login now