Skip to content

Commit 3e32a4f

Browse files
fix: properly get and install the dependencies for an editable build (#7579)
1 parent 0e72a55 commit 3e32a4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/poetry/installation/chef.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ def _prepare(
125125
error: Exception | None = None
126126
try:
127127
with redirect_stdout(stdout):
128+
dist_format = "wheel" if not editable else "editable"
128129
env.install(
129130
builder.build_system_requires
130-
| builder.get_requires_for_build("wheel")
131+
| builder.get_requires_for_build(dist_format)
131132
)
132133
path = Path(
133134
builder.build(
134-
"wheel" if not editable else "editable",
135+
dist_format,
135136
destination.as_posix(),
136137
)
137138
)

0 commit comments

Comments
 (0)