CompilerCapabilities#
- class scikitplot.cython.CompilerCapabilities(name, spec_version=1, version=None, supported_languages=frozenset({'c'}), platforms=None, requires_cpp=False, deterministic=True, features=<factory>)[source]#
Versioned, declarative description of a custom compiler’s capabilities.
A registered compiler may expose one of these (via a
capabilitiesattribute or acapabilities()method) so consumers can reason about what it supports — languages, platforms/ABI, and feature flags — without invoking it (CYTHON-COMP-001). Bare callables that declare nothing get a conservative default fromcompiler_capabilities.- Parameters:
- namestr
The compiler’s registered name.
- spec_versionint, default=COMPILER_SPEC_VERSION
Schema version of this descriptor.
- versionstr or None, default=None
The compiler plugin’s own version string, if any.
- supported_languagesfrozenset of str, default=frozenset({“c”})
Source languages the compiler can build (e.g.
"c","c++","cython").- platformsfrozenset of str or None, default=None
sys.platformvalues the compiler supports;Nonemeans “any”.- requires_cppbool, default=False
Whether the compiler requires a C++ toolchain.
- deterministicbool, default=True
Whether repeated builds of identical inputs yield identical artifacts.
- featuresMapping[str, Any], default empty
Free-form capability flags for forward-compatible extension.
- Parameters:
See also
compiler_capabilitiesRead the capabilities of any registered compiler.
- supports_language(language)[source]#
Return whether
languageis insupported_languages.