fix: ImportError for builtins in Python2.7

This commit is contained in:
debugtalk
2019-04-24 16:14:49 +08:00
parent a3cc072c36
commit 003cceed69

View File

@@ -25,6 +25,11 @@ install_requires = [
"filetype"
]
# Python 2.x?
is_py2 = (sys.version_info[0] == 2)
if is_py2:
install_requires.append("future")
class UploadCommand(Command):
""" Build and publish this package.
Support setup.py upload. Copied from requests_html.