Skip to content

Commit

Permalink
enh: Build extension modules inplace during editable install.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwardrop authored and robbotorigami committed Aug 30, 2023
1 parent 730a87b commit 88101f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/poetry/core/masonry/builders/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ def _copy_file_scripts(self, wheel: zipfile.ZipFile) -> None:
)

def _run_build_command(self, setup: Path) -> None:
if self._editable:
subprocess.check_call(
[
self.executable.as_posix(),
str(setup),
"build_ext",
"--inplace",
]
)
subprocess.check_call(
[
self.executable.as_posix(),
Expand Down

0 comments on commit 88101f2

Please sign in to comment.