Skip to content

Commit

Permalink
pip installer: handle python 3.6 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Mar 25, 2021
1 parent cbe3081 commit c5f3742
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions poetry/utils/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ def pip_install(
# zip-safe pep517 lib. In this cases we create an isolated ephemeral
# virtual environment.
_ = args.pop(1)
return environment.run_pip(
*args, env={**os.environ, "PYTHONPATH": str(env.purelib)}
return environment.run(
env._bin("pip"),
*args,
env={**os.environ, "PYTHONPATH": str(env.purelib)}
)
raise e

Expand Down

0 comments on commit c5f3742

Please sign in to comment.