From 075b40b92ed53f7da96da36a147d9d90c785b138 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 27 Sep 2014 06:35:35 -0500 Subject: [PATCH] Fix python3.3+ builds --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1fda18f5..1a15582d 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ from distutils.command.build_py import build_py # These packages are sometimes installed outside of the setuptools scope DEPENDENCIES = {} with open('requirements.txt', 'rb') as fid: - data = fid.read() + data = fid.read().decode('utf-8', 'replace') for line in data.splitlines(): pkg, _, version_info = line.partition('>=') # Only require Cython if we have a developer checkout @@ -44,7 +44,7 @@ for line in data.splitlines(): version.append(int(part)) except ValueError: pass - DEPENDENCIES[pkg.lower()] = version + DEPENDENCIES[pkg.lower()] = tuple(version) def configuration(parent_package='', top_path=None):