diff options
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index fb8cd74f..421d0c09 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1104,6 +1104,10 @@ Please make the appropriate changes for your system and try again.""" % ( log.debug("Checking existing site.py in %s", self.install_dir) f = open(sitepy,'rb') current = f.read() + # we want str, not bytes + if sys.version_info >= (3,): + current = current.decode() + f.close() if not current.startswith('def __boot():'): raise DistutilsError( |