From 717e881e07cb460a2acb146f34946a298963d8eb Mon Sep 17 00:00:00 2001 From: terrytangyuan Date: Tue, 9 Oct 2018 14:59:27 -0400 Subject: [PATCH] Fix python2.7 compatibility in setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 96210994..168fbcb6 100755 --- a/setup.py +++ b/setup.py @@ -2,13 +2,14 @@ # -*- coding: utf-8 -*- from setuptools import setup import os +import io version = {} -with open(os.path.join('metric_learn', '_version.py')) as fp: +with io.open(os.path.join('metric_learn', '_version.py')) as fp: exec(fp.read(), version) # Get the long description from README.md -with open('README.rst', encoding='utf-8') as f: +with io.open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='metric-learn',