From 9b4eeb4515de3aa620420cd750b904c6ab957f15 Mon Sep 17 00:00:00 2001 From: onerandomusername Date: Tue, 28 Feb 2023 15:19:03 -0500 Subject: [PATCH] fix: properly get and install the dependencies for an editable build --- 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(), ) )