Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
improve installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Apr 13, 2019
1 parent 498671e commit ac2957a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from appdirs import user_data_dir
except ImportError:
print('install appdirs')
main(['install', '--user', 'appdirs'])
main(['install', 'appdirs'])
from appdirs import user_data_dir


Expand All @@ -33,7 +33,8 @@


print('install dephell')
pip_path = list(path.glob('*/pip3'))[0]
pip_paths = list(path.glob('*/pip3')) + list(path.glob('*/pip'))
pip_path = pip_paths[0]
result = subprocess.run([str(pip_path), 'install', 'dephell[full]'])
if result.returncode != 0:
exit(result.returncode)
Expand Down

0 comments on commit ac2957a

Please sign in to comment.