Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
Merge pull request #227 from sebastienvercammen/pip-update
Browse files Browse the repository at this point in the history
Fix compatibility w/ latest pip.
  • Loading branch information
keyphact committed Dec 15, 2018
2 parents 8d18543 + aaac1bd commit cc377ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import os
from setuptools import setup, find_packages
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

setup_dir = os.path.dirname(os.path.realpath(__file__))
path_req = os.path.join(setup_dir, 'requirements.txt')
Expand Down

0 comments on commit cc377ac

Please sign in to comment.