diff --git a/poetry/installation/pip_installer.py b/poetry/installation/pip_installer.py index 331a69b580e..349f222c73c 100644 --- a/poetry/installation/pip_installer.py +++ b/poetry/installation/pip_installer.py @@ -181,7 +181,6 @@ def create_temporary_requirement(self, package): def install_directory(self, package): from poetry.factory import Factory - from poetry.utils.env import NullEnv from poetry.utils.toml_file import TomlFile if package.root_dir: @@ -215,7 +214,7 @@ def install_directory(self, package): from poetry.masonry.builders.editable import EditableBuilder builder = EditableBuilder( - Factory().create_poetry(pyproject.parent), NullEnv(), NullIO() + Factory().create_poetry(pyproject.parent), self._env, NullIO() ) builder.build() diff --git a/poetry/masonry/builders/editable.py b/poetry/masonry/builders/editable.py index 1757bd4ff3d..15cfe53676a 100644 --- a/poetry/masonry/builders/editable.py +++ b/poetry/masonry/builders/editable.py @@ -38,7 +38,7 @@ def _setup_build(self): str(self._poetry.file), str(self._poetry.file.with_suffix(".tmp")) ) try: - self._env.run_pip("install", "-e", str(self._path)) + self._env.run_pip("install", "--no-deps", "-e", str(self._path)) finally: shutil.move( str(self._poetry.file.with_suffix(".tmp")),