Extensions¶
Conan can be extended in a few ways, with custom user code:
python_requires
allow to put common recipe code in a recipe package that can be reused by other recipes by declaring apython_requires = "mypythoncode/version"
hooks
are “pre” and “post” recipe methods (likepre_build()
andpost_build()
) extensions that can be used to complement recipes with orthogonal functionality, like quality checks, binary analyzing, logging, etc.- Binary compatibility
compatibility.py
extension allows to write custom rules for defining custom binary compatibility accross different settings and options - The
cmd_wrapper.py
extension allows to inject arbitrary command wrappers to anyself.run()
recipe command invocation, which can be useful to inject wrappers as parallelization tools - The package signing extension allows to sign and verify packages at upload and install time respectively
TODO: Put commands here?
Contents: