Skip to content

Commit

Permalink
fix: properly get and install the dependencies for an editable build (#…
Browse files Browse the repository at this point in the history
…7579)

(cherry picked from commit 3e32a4f)
  • Loading branch information
onerandomusername authored and radoering committed Mar 1, 2023
1 parent 0e72a55 commit bbb0d89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/poetry/installation/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
)
Expand Down

0 comments on commit bbb0d89

Please sign in to comment.