Installs the compile function into distutils.ccompiler.CCompiler.compile.
(self: S)
| 486 | return compile_function |
| 487 | |
| 488 | def install(self: S) -> S: |
| 489 | """ |
| 490 | Installs the compile function into distutils.ccompiler.CCompiler.compile. |
| 491 | """ |
| 492 | distutils.ccompiler.CCompiler.compile = self.function() # type: ignore[assignment] |
| 493 | return self |
| 494 | |
| 495 | def __enter__(self: S) -> S: |
| 496 | self._old.append(distutils.ccompiler.CCompiler.compile) |
no test coverage detected