From b51d015d90f7437def0b56210602e264bd0542ac Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Mon, 13 Apr 2020 17:08:38 +0200 Subject: [PATCH] Fix incorrect sdist builder call --- poetry/installation/pip_installer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/poetry/installation/pip_installer.py b/poetry/installation/pip_installer.py index f075ee3b564..44c7ecc37ad 100644 --- a/poetry/installation/pip_installer.py +++ b/poetry/installation/pip_installer.py @@ -5,7 +5,6 @@ from subprocess import CalledProcessError from clikit.api.io import IO -from clikit.io import NullIO from poetry.repositories.pool import Pool from poetry.utils._compat import encode @@ -179,7 +178,6 @@ def install_directory(self, package): from poetry.core.masonry.builder import SdistBuilder from poetry.factory import Factory from poetry.utils._compat import decode - from poetry.utils.env import NullEnv from poetry.utils.toml_file import TomlFile if package.root_dir: @@ -210,9 +208,7 @@ def install_directory(self, package): # file since pip, as of this comment, does not support # build-system for editable packages # We also need it for non-PEP-517 packages - builder = SdistBuilder( - Factory().create_poetry(pyproject.parent), NullEnv(), NullIO() - ) + builder = SdistBuilder(Factory().create_poetry(pyproject.parent),) with open(setup, "w", encoding="utf-8") as f: f.write(decode(builder.build_setup()))