Skip to content

Commit

Permalink
fix setup.py for pip>=10
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas LEVEIL committed Aug 14, 2018
1 parent bd3604e commit e7c5624
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 @@ -4,7 +4,10 @@
from os import environ as env
import subprocess

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

requirements = [str(req.req) for req in parse_requirements('requirements.txt', session=False)]
requirements_plugins = [str(req.req) for req in parse_requirements('requirements-plugins.txt', session=False)]
Expand Down

0 comments on commit e7c5624

Please sign in to comment.