Internal source dependency of the capsule that should only be included in the C extensions that depend on the capsule, eg. by importing a type or function from the capsule.
(self)
| 20 | return hash(("Capsule", self.name)) |
| 21 | |
| 22 | def internal_dep(self) -> SourceDep: |
| 23 | """Internal source dependency of the capsule that should only be included in the C extensions |
| 24 | that depend on the capsule, eg. by importing a type or function from the capsule. |
| 25 | """ |
| 26 | module = self.name.split(".")[-1] |
| 27 | return SourceDep(f"{module}/librt_{module}_api.c", include_dirs=[module]) |
| 28 | |
| 29 | def external_dep(self) -> HeaderDep: |
| 30 | """External header dependency of the capsule that may be included in external headers of C |
no test coverage detected