mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Fix detection of Limnoria version from Git when running the setup with Python 3.
This commit is contained in:
parent
b6ea53b07a
commit
4aa34ba6d8
5
setup.py
5
setup.py
@ -47,7 +47,10 @@ version = None
|
||||
try:
|
||||
proc = subprocess.Popen('git show HEAD --format=%ci', shell=True,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
version = proc.stdout.readline() \
|
||||
version = proc.stdout.readline()
|
||||
if sys.version_info[0] >= 3:
|
||||
version = version.decode()
|
||||
version = version \
|
||||
.strip() \
|
||||
.split(' +')[0] \
|
||||
.replace(' ', 'T') \
|
||||
|
Loading…
Reference in New Issue
Block a user