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 c5f3742 commit 0bf898c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poetry/utils/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def pip_install(
try:
return environment.run_pip(*args)
except EnvCommandError as e:
if sys.version_info == (3, 6) and not is_wheel:
print("WE GOT EXCEPTION ")
if sys.version_info < (3, 7) and not is_wheel:
print("WE ARE IN ALTERNATE INSTALLATION")
with ephemeral_environment(
executable=environment.python, pip=True, setuptools=True
) as env:
Expand Down

0 comments on commit 0bf898c

Please sign in to comment.