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

Method _single_compile

pybind11/setup_helpers.py:452–459  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

450 threads = int(os.environ.get(self.envvar, self.default))
451
452 def _single_compile(obj: Any) -> None:
453 try:
454 src, ext = build[obj]
455 except KeyError:
456 return
457
458 if not os.path.exists(obj) or self.needs_recompile(obj, src):
459 compiler._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) # type: ignore[attr-defined]
460
461 try:
462 # Importing .synchronize checks for platforms that have some multiprocessing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected