X Tutup
Skip to content

Commit 4f8e4a8

Browse files
fix python 3 install
I assume this was working in the tests because an earlier OSError was caught
1 parent 69eebf8 commit 4f8e4a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
proc = subprocess.Popen(['git', 'describe', '--tags'],
4343
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
4444
stdout = proc.communicate()[0].rstrip()
45+
if sys.version_info[0] > 2:
46+
stdout = stdout.decode('ascii')
4547

4648
if proc.returncode == 0:
4749
version_split = stdout.split('-')

0 commit comments

Comments
 (0)
X Tutup