Skip to content

Commit

Permalink
Merge pull request mattloper#18 from jimmyland/patch-1
Browse files Browse the repository at this point in the history
fix import of parse_requirements for pip v10
  • Loading branch information
Matthew Loper authored Aug 21, 2018
2 parents 58a76a8 + 7784284 commit cf63387
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"""

from distutils.core import setup
from pip.req import parse_requirements
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from runpy import run_path

install_reqs = parse_requirements('requirements.txt', session=False)
Expand Down

0 comments on commit cf63387

Please sign in to comment.