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

Commit

Permalink
install pip in venv
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Apr 13, 2019
1 parent 8cdef25 commit d5673d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
path = Path(user_data_dir('dephell')) / 'venvs' / 'dephell'
create(str(path), with_pip=True)

print('install pip in venv')
python_path = list(path.glob('*/python3'))[0]
result = subprocess.run([str(python_path), '-m', 'ensurepip'])
if result.returncode != 0:
exit(result.returncode)


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

0 comments on commit d5673d4

Please sign in to comment.