We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7dd7f commit 5adbb88Copy full SHA for 5adbb88
setup.py
@@ -70,11 +70,13 @@ def run(self):
70
shell=True)
71
repo_commit, _ = proc.communicate()
72
# Fix for python 3
73
- repo_commit = '{}'.format(repo_commit)
+ if PY3:
74
+ repo_commit = repo_commit.decode()
75
+
76
# We write the installation commit even if it's empty
77
cfg_parser = ConfigParser()
78
cfg_parser.read(pjoin('nipype', 'COMMIT_INFO.txt'))
- cfg_parser.set('commit hash', 'install_hash', repo_commit)
79
+ cfg_parser.set('commit hash', 'install_hash', repo_commit.strip())
80
out_pth = pjoin(self.build_lib, 'nipype', 'COMMIT_INFO.txt')
81
if PY3:
82
cfg_parser.write(open(out_pth, 'wt'))
0 commit comments