runtime_fingerprint#

scikitplot.cython.runtime_fingerprint(*, cython_version, numpy_version)[source]#

Compute a runtime fingerprint for caching correctness.

The fingerprint includes the interpreter, platform, and library versions and the toolchain / ABI inputs (compiler identity, extension ABI tag, pointer width, free-threaded flag) so that an artifact built with one compiler or ABI is never reused under an incompatible one (CYTHON-CACHE-003).

Parameters:
cython_versionstr

Cython version.

numpy_versionstr or None

NumPy version (None if not used).

Returns:
Mapping[str, Any]

Fingerprint mapping.

Parameters:
  • cython_version (str)

  • numpy_version (str | None)

Return type:

Mapping[str, Any]

Notes

Extending this mapping intentionally changes cache keys, so entries built by an older library version are treated as misses and rebuilt once — this is the correct behaviour, since those entries lacked toolchain/ABI safety.