Skip to content

Commit

Permalink
rewrite to handle pip's refactor of main to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
lacava committed Aug 3, 2018
1 parent 1bc2e83 commit 62f6f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
importlib.import_module('eigency')
except (ImportError, AttributeError):
try:
import pip
pip.main(['install', 'eigency'])
from pip._internal import main
main(['install', 'eigency'])
except ImportError:
raise ImportError('The eigency library must be installed before FEW. '
'Automatic install with pip failed.')
Expand Down

0 comments on commit 62f6f91

Please sign in to comment.