mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 04:59:24 +01:00
Revert "setup.py: work around installation error on Python 3.4"
This reverts commit c91b5f74ea
.
This commit is contained in:
parent
243efbd0f8
commit
3155172fc8
6
setup.py
6
setup.py
@ -30,14 +30,8 @@ with open('__init__.py', 'w') as f:
|
||||
f.write('real_version = %r\n' % real_version)
|
||||
|
||||
try:
|
||||
if sys.version_info >= (3, 5):
|
||||
with open('README.md') as f:
|
||||
long_description = f.read()
|
||||
else:
|
||||
# Work around "TypeError: a bytes-like object is required, not 'str'" errors on Python 3.4
|
||||
# when the README has Unicode characters (error in distutils.util.rfc822_escape)
|
||||
import codecs
|
||||
long_description = codecs.open('README.md', encoding='utf-8').read()
|
||||
except OSError:
|
||||
print('WARNING: Failed to read readme, skipping writing long_description')
|
||||
long_description = None
|
||||
|
Loading…
Reference in New Issue
Block a user