Skip to content

Custom build hook

This is a custom class in a given Python file that inherits from the BuildHookInterface.


The build hook plugin name is custom.



Option Default Description
path The path of the Python file


from import BuildHookInterface

class CustomBuildHook(BuildHookInterface):

If multiple subclasses are found, you must define a function named get_build_hook that returns the desired build hook.


Any defined PLUGIN_NAME is ignored and will always be custom.

Last update: July 2, 2022