(self)
| 31 | |
| 32 | class CMakeBuild(build_ext): |
| 33 | def run(self): |
| 34 | try: |
| 35 | subprocess.check_output(["cmake", "--version"]) |
| 36 | except OSError: |
| 37 | raise RuntimeError( |
| 38 | "CMake must be installed to build the following extensions: " |
| 39 | + ", ".join( |
| 40 | e.name for e in self.extensions if isinstance(e, CMakeExtension) |
| 41 | ) |
| 42 | ) |
| 43 | |
| 44 | super().run() |
| 45 | |
| 46 | def build_extension(self, ext: Extension) -> None: |
| 47 | # This is needed to build the Cython extension. |