mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
fix: ImportError for builtins in Python2.7
This commit is contained in:
5
setup.py
5
setup.py
@@ -25,6 +25,11 @@ install_requires = [
|
|||||||
"filetype"
|
"filetype"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Python 2.x?
|
||||||
|
is_py2 = (sys.version_info[0] == 2)
|
||||||
|
if is_py2:
|
||||||
|
install_requires.append("future")
|
||||||
|
|
||||||
class UploadCommand(Command):
|
class UploadCommand(Command):
|
||||||
""" Build and publish this package.
|
""" Build and publish this package.
|
||||||
Support setup.py upload. Copied from requests_html.
|
Support setup.py upload. Copied from requests_html.
|
||||||
|
|||||||
Reference in New Issue
Block a user