Skip to content

Commit

Permalink
Fix incorrect sdist builder call (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
abn authored Apr 13, 2020
1 parent 440cff1 commit 3458f0e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions poetry/installation/pip_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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()))
Expand Down

0 comments on commit 3458f0e

Please sign in to comment.