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