forked from pool/python-Arpeggio
31 lines
903 B
Diff
31 lines
903 B
Diff
|
|
From a23376c03106779b75dc332b04b68deca57eca5a Mon Sep 17 00:00:00 2001
|
||
|
|
From: Sebastian Wagner <sebix@sebix.at>
|
||
|
|
Date: Sat, 7 Jul 2018 10:16:34 +0200
|
||
|
|
Subject: [PATCH] Fix setup.py version read
|
||
|
|
|
||
|
|
utf-8 encoding in environment was assumed
|
||
|
|
---
|
||
|
|
setup.py | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/setup.py b/setup.py
|
||
|
|
index 2b17939..0e2d39f 100644
|
||
|
|
--- a/setup.py
|
||
|
|
+++ b/setup.py
|
||
|
|
@@ -12,13 +12,14 @@
|
||
|
|
# Parsers are defined using python language construction or PEG language.
|
||
|
|
###############################################################################
|
||
|
|
|
||
|
|
+import codecs
|
||
|
|
import os
|
||
|
|
import sys
|
||
|
|
from setuptools import setup
|
||
|
|
|
||
|
|
VERSIONFILE = "arpeggio/__init__.py"
|
||
|
|
VERSION = None
|
||
|
|
-for line in open(VERSIONFILE, "r").readlines():
|
||
|
|
+for line in codecs.open(VERSIONFILE, "r", encoding='utf-8').readlines():
|
||
|
|
if line.startswith('__version__'):
|
||
|
|
VERSION = line.split('"')[1]
|
||
|
|
|