From 3e32a4f83e89b2b2bede68e0d375a70931b04a8e Mon Sep 17 00:00:00 2001 From: arl Date: Wed, 1 Mar 2023 13:43:16 -0500 Subject: [PATCH] fix: properly get and install the dependencies for an editable build (#7579) --- src/poetry/installation/chef.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/poetry/installation/chef.py b/src/poetry/installation/chef.py index d3f7b09d38e..0115e439200 100644 --- a/src/poetry/installation/chef.py +++ b/src/poetry/installation/chef.py @@ -125,13 +125,14 @@ def _prepare( error: Exception | None = None try: with redirect_stdout(stdout): + dist_format = "wheel" if not editable else "editable" env.install( builder.build_system_requires - | builder.get_requires_for_build("wheel") + | builder.get_requires_for_build(dist_format) ) path = Path( builder.build( - "wheel" if not editable else "editable", + dist_format, destination.as_posix(), ) )