MCPcopy Create free account
hub / github.com/pybind/pybind11 / install

Method install

pybind11/setup_helpers.py:488–493  ·  view source on GitHub ↗

Installs the compile function into distutils.ccompiler.CCompiler.compile.

(self: S)

Source from the content-addressed store, hash-verified

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)

Callers 7

__enter__Method · 0.95
lintFunction · 0.80
testsFunction · 0.80
tests_packagingFunction · 0.80
docsFunction · 0.80
buildFunction · 0.80
build_globalFunction · 0.80

Calls 1

functionMethod · 0.95

Tested by

no test coverage detected