MCPcopy Create free account
hub / github.com/ceph/ceph / _pybind_job

Method _pybind_job

src/script/cpatch.py:635–642  ·  view source on GitHub ↗
(self, component)

Source from the content-addressed store, hash-verified

633 return ["ADD cephadm /usr/sbin/cephadm"]
634
635 def _pybind_job(self, component):
636 sodir = self._ctx.build_dir / "lib/cython_modules/lib.3"
637 dst = self._workdir / "cythonlib"
638 dst.mkdir(parents=True, exist_ok=True)
639 for pth in sodir.iterdir():
640 if pth.match("*.cpython-3*.so"):
641 self._copy_binary(pth, dst / pth.name)
642 return [f"ADD cythonlib {self._py_site_packages()}"]
643
644 def _core_job(self, component):
645 # [Quoth the original script]:

Callers

nothing calls this directly

Calls 4

_copy_binaryMethod · 0.95
_py_site_packagesMethod · 0.95
mkdirMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected