0001-fix-UTF-8-encoding-issue.patch 934 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
From 0c59f890d0a3e7e083e3a8cce9c1462b872fe1d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20B=C3=B6ck?= <sebastian.boeck@jku.at>
Date: Thu, 1 Jun 2017 14:30:39 +0200
Subject: [PATCH] fix UTF-8 encoding issue

closes #290
---
 setup.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index cbccfe8..9922686 100644
--- a/setup.py
+++ b/setup.py
@@ -65,8 +65,12 @@ requirements = ['numpy>=1.8.1',
                 ]

 # docs to be included
-long_description = open('README.rst').read()
-long_description += '\n' + open('CHANGES.rst').read()
+try:
+    long_description = open('README.rst', encoding='utf-8').read()
+    long_description += '\n' + open('CHANGES.rst', encoding='utf-8').read()
+except TypeError:
+    long_description = open('README.rst').read()
+    long_description += '\n' + open('CHANGES.rst').read()

 # the actual setup routine
 setup(name='madmom',
--
2.14.1