Skip to content

Commit

Permalink
FIX: compatibility with pip versions > 10.*.*
Browse files Browse the repository at this point in the history
  • Loading branch information
marionleborgne committed Aug 28, 2018
1 parent 81d18ff commit 82c2fac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from setuptools import setup, find_packages
from pip.download import PipSession
from pip.req import parse_requirements
try:
from pip.req import parse_requirements
except ImportError:
from pip._internal.req import parse_requirements
try:
from pip.download import PipSession
except ImportError:
from pip._internal.download import PipSession
import os

# Get __version__ and set other constants.
Expand Down

0 comments on commit 82c2fac

Please sign in to comment.