Skip to content

Commit

Permalink
Merge pull request #21 from jgraving/master
Browse files Browse the repository at this point in the history
Update setup.py for pip>=10.0.0
  • Loading branch information
nebw committed Jun 14, 2018
2 parents e3417de + afdc048 commit c724a61
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
@@ -1,7 +1,10 @@
#!/usr/bin/env python

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

install_reqs = parse_requirements('requirements.txt', session=False)
reqs = [str(ir.req) for ir in install_reqs]
Expand Down

0 comments on commit c724a61

Please sign in to comment.