(self)
| 466 | super().__init__(*args, **kwargs) |
| 467 | |
| 468 | def run(self): |
| 469 | # Run the build command first in editable mode. Since `build` command |
| 470 | # will also trigger `build_ext` command, only run this once. |
| 471 | if self._ran_build: |
| 472 | return |
| 473 | |
| 474 | if self.editable_mode: |
| 475 | self._ran_build = True |
| 476 | self.run_command("build") |
| 477 | super().run() |
| 478 | |
| 479 | def copy_extensions_to_source(self) -> None: |
| 480 | """For each extension in `ext_modules`, we need to copy the extension |