Skip to content

Commit

Permalink
updating to pip 19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Dec 21, 2019
1 parent 9c488cd commit 3805515
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
try:
import pkg_utils
except ImportError:
import pip._internal.main
pip._internal.main.main(['install', 'pkg_utils'])
import pip
pip_version = tuple(pip.__version__.split('.'))
if pip_version >= ('19', '3', '0'):
import pip._internal.main as pip_main
elif pip_version >= ('19', '0', '0'):
import pip._internal as pip_main
pip_main.main(['install', 'pkg_utils'])
import pkg_utils
import os

Expand Down

0 comments on commit 3805515

Please sign in to comment.