0001-python3-compatibility-on-setup.py-28278.patch
setup.py | ||
---|---|---|
54 | 54 |
sub_commands = [('compile_translations', None)] + _sdist.sub_commands |
55 | 55 | |
56 | 56 |
def run(self): |
57 |
print "creating VERSION file"
|
|
57 |
print("creating VERSION file")
|
|
58 | 58 |
if os.path.exists('VERSION'): |
59 | 59 |
os.remove('VERSION') |
60 | 60 |
version = get_version() |
... | ... | |
62 | 62 |
version_file.write(version) |
63 | 63 |
version_file.close() |
64 | 64 |
_sdist.run(self) |
65 |
print "removing VERSION file"
|
|
65 |
print("removing VERSION file")
|
|
66 | 66 |
if os.path.exists('VERSION'): |
67 | 67 |
os.remove('VERSION') |
68 | 68 | |
... | ... | |
89 | 89 |
else: |
90 | 90 |
result = '0.0.0-%s' % len(subprocess.check_output( |
91 | 91 |
['git', 'rev-list', 'HEAD']).splitlines()) |
92 |
return result.replace('-', '.').replace('.g', '+g') |
|
92 |
return result.decode('utf-8').replace('-', '.').replace('.g', '+g')
|
|
93 | 93 |
return '0.0.0' |
94 | 94 | |
95 | 95 | |
96 |
- |