Commit dd311872 by Sébastien Eustace

Fix pip installer

parent 1feb5df7
...@@ -3,6 +3,7 @@ import tempfile ...@@ -3,6 +3,7 @@ import tempfile
from subprocess import CalledProcessError from subprocess import CalledProcessError
from poetry.utils._compat import decode
from poetry.utils.venv import Venv from poetry.utils.venv import Venv
from .base_installer import BaseInstaller from .base_installer import BaseInstaller
...@@ -82,7 +83,7 @@ class PipInstaller(BaseInstaller): ...@@ -82,7 +83,7 @@ class PipInstaller(BaseInstaller):
) )
try: try:
os.write(fd, self.requirement(package, formatted=True)) os.write(fd, decode(self.requirement(package, formatted=True)))
finally: finally:
os.close(fd) os.close(fd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment