build_extension_package_from_code_result#
- scikitplot.cython.build_extension_package_from_code_result(modules, *, package_name, cache_dir=None, use_cache=True, force_rebuild=False, verbose=0, profile=None, annotate=False, view_annotate=False, numpy_support=True, numpy_required=False, include_dirs=None, library_dirs=None, libraries=None, define_macros=None, extra_compile_args=None, extra_link_args=None, compiler_directives=None, extra_sources=None, support_files=None, support_paths=None, include_cwd=True, lock_timeout_s=60.0, language=None)[source]#
Compile a package of multiple extension modules from in-memory code strings.
- Parameters:
- modulesMapping[str, str]
Mapping of
{module_short_name: pyx_code}. Module names must be simple identifiers (no dots). The compiled modules will be importable as{package_name}.{module_short_name}.- package_namestr
Python package name (identifier-like; may include dots for a nested package).
- cache_dir, use_cache, force_rebuild, verbose, annotate, view_annotate, numpy_support, numpy_required
- include_dirs, library_dirs, libraries, define_macros, extra_compile_args, extra_link_args, compiler_directives
- extra_sourcessequence of path-like, optional
Additional C/C++ sources compiled and linked into each extension module. Allowed suffixes: .c, .cc, .cpp, .cxx, .C
- support_filesMapping[str, str | bytes] or None, default=None
Support files written into the package directory (e.g.,
.pxi,.pxd). Filenames must be simple (no directories). Collisions are strict.- support_pathssequence of path-like, optional
Support files copied into the package directory. Basenames must be unique.
- include_cwdbool, default=True
If True, include the current working directory in include paths.
- lock_timeout_sfloat, default=60.0
Maximum seconds to wait for the per-key build lock.
- language{‘c’, ‘c++’} or None, default=None
Optional explicit language for the extensions.
- Returns:
- scikitplot.cython.PackageBuildResult
Result object containing all loaded modules.
- Parameters:
package_name (str)
use_cache (bool)
force_rebuild (bool)
verbose (int)
profile (str | None)
annotate (bool)
view_annotate (bool)
numpy_support (bool)
numpy_required (bool)
include_dirs (Sequence[PathLike[str] | PathLike[bytes] | str | bytes] | None)
library_dirs (Sequence[PathLike[str] | PathLike[bytes] | str | bytes] | None)
extra_sources (Sequence[PathLike[str] | PathLike[bytes] | str | bytes] | None)
support_paths (Sequence[PathLike[str] | PathLike[bytes] | str | bytes] | None)
include_cwd (bool)
lock_timeout_s (float)
language (str | None)
- Return type: