Utility¶
- class selene_core.utility.Utility¶
An abstract base class for link-time “utility” plugins.
Simulator plugins’ python API should provide a specialisation of this class that provides the path to files which should be linked in with the selene executable
- __abstractmethods__ = frozenset({'library_file'})¶
- __eq__(other)¶
Return self==value.
- __hash__ = None¶
- __init__() None ¶
- __repr__()¶
Return repr(self).
- abstract property library_file: Path¶
Utilities expose symbols that user programs can call into directly, rather than via the Selene interface itself. They are implemented as a compiled library, which you should provide through this property.
- property library_search_dirs: list[Path]¶
Returns the paths to any additional libraries required by the plugin.
- property link_flags: list[str]¶
Returns the flags to be used when linking the plugin against the selene executable, if any. This is likely to include rpath entries, but may also include other flags.