-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fixed import error for pip version 10 #61
Conversation
setup.py
Outdated
# https://stackoverflow.com/a/49867265 | ||
try: # pip > 10 | ||
from pip._internal.req import parse_requirements | ||
except ImportError: # pip < 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at least two spaces before inline comment
setup.py
Outdated
from pip.req import parse_requirements | ||
# Fixes import error due to breaking change in pip 10 | ||
# https://stackoverflow.com/a/49867265 | ||
try: # pip > 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at least two spaces before inline comment
setup.py
Outdated
# https://stackoverflow.com/a/49867265 | ||
try: # pip > 10 | ||
from pip._internal.req import parse_requirements | ||
except ImportError: # pip < 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline comment should start with '# '
setup.py
Outdated
from pip.req import parse_requirements | ||
# Fixes import error due to breaking change in pip 10 | ||
# https://stackoverflow.com/a/49867265 | ||
try: # pip > 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline comment should start with '# '
Description:
With pip10, import from
pip.req
for theparse_requirements
functions is deprecated and replaced withpip._internals.req
Checklist:
tox
run successfully PR cannot be meged unless tests pass