Skip to content

Commit

Permalink
support pip 10 Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Apr 18, 2018
1 parent 1ebd196 commit 523fd8b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions liccheck/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
import sys

import pkg_resources
from pip._vendor import pkg_resources
from pip.download import PipSession
from pip.req import parse_requirements
try:
from pip._internal.download import PipSession
except ImportError:
from pip.download import PipSession

try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements


class Strategy:
Expand Down

0 comments on commit 523fd8b

Please sign in to comment.