(*sources: str)
| 113 | # Remove the CMake install directory when done |
| 114 | @contextlib.contextmanager |
| 115 | def remove_output(*sources: str) -> Iterator[None]: |
| 116 | try: |
| 117 | yield |
| 118 | finally: |
| 119 | for src in sources: |
| 120 | shutil.rmtree(src) |
| 121 | |
| 122 | |
| 123 | with remove_output("pybind11/include", "pybind11/share"): |