mamut_routing_lib.solvers.provenance¶
Environment facts recorded with every solve.
machine (the CPU model) goes into BKS metadata, which is published; the
hostname is only ever written to local run archives (include_host=True).
cpu_model
cached
¶
The CPU model name (/proc/cpuinfo on Linux, platform.processor() elsewhere).
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/provenance.py
package_version
¶
lib_version
¶
declared_requirement
¶
The version clauses that the installed package declares on distribution on (None when it declares none).
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/provenance.py
satisfies
¶
Whether version meets comma-separated clauses such as >=0.6.0,<0.12.
Releases are compared on their numeric parts only, so a development or pre-release
counts as its release. None when a clause is not a plain comparison.
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/provenance.py
environment
¶
Machine, platform, Python and library versions (and the hostname on request).
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/provenance.py
java_release
¶
The version of the JDK or JRE that holds this java launcher, from its release file.
21.0.13+9-LTS (Eclipse Adoptium); None when the launcher has no release file next
to its bin directory. Reading the file costs nothing, where java -version starts a JVM.
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/provenance.py
file_sha256
¶
sha256 of a file's bytes; None if it does not exist.
With cache the digest is remembered for the identity of the file: path, size, modification
time, change time and inode. A build installed over another with the same size and modification
time (cp -p, a reproducible build) has another inode or change time, which no tool sets back.
cache=False is for a file written once per run: remembering it only grows the cache, and a
work directory reused within one tick of the file-system clock gives two files one identity.