compile_template_result#
- scikitplot.cython.compile_template_result(template_id, *, module_name=None, cache_dir=None, use_cache=True, force_rebuild=False, verbose=0, profile=None, numpy_support=True, numpy_required=None, annotate=False, view_annotate=False, compiler_directives=None, include_dirs=None, extra_compile_args=None, extra_link_args=None, extra_sources=None, support_files=None, support_paths=None, include_cwd=True, lock_timeout_s=60.0, language=None)[source]#
Compile and import a Cython template and return a structured result.
- Parameters:
- template_idstr
Template ID resolving to a
.pyxtemplate.- module_namestr or None, default=None
Compiled module name override. If None, the builder derives a unique, deterministic name from the full cache key (recommended to avoid collisions when building the same template under different options).
- include_cwdbool, default=True
If True, include the current working directory in include paths.
- lock_timeout_sfloat, default=60.0
Max seconds to wait for the per-key build lock.
- cache_dir, use_cache, force_rebuild, verbose, annotate, view_annotate, compiler_directives, include_dirs, extra_sources
- profile{‘fast-debug’, ‘release’, ‘annotate’} or None, default=None
Optional build profile preset.
- numpy_supportbool, default=True
If True, attempt to include NumPy headers if NumPy is installed.
- numpy_requiredbool or None, default=None
If True, raise if NumPy is unavailable. If None, value is derived from template metadata (
requires_numpy) when present.- support_files, support_paths
Additional support files/paths to include for compilation.
- language{‘c’, ‘c++’} or None, default=None
Optional language override. If None, may be derived from metadata.
- Returns:
- scikitplot.cython.BuildResult
Structured build result.
- Raises:
- ValueError
If the resolved template is not a Cython template.
- Parameters: