sp-variant - detect the Linux distribution for the StorPool build system

The sp-variant library is mainly useful within the StorPool internal build and QA environment, as well as the first step of installations on end-user systems. It examines several files and tries to determine what distribution and what version it is running on.

Basic command-line usage

Basic Python API

The sp_variant.variant module exports several constants and functions, among them:

Basic Rust API

The sp-variant crate exports several constants and functions, among them:

For more information, as well as for suggestions and problem reports, please contact the StorPool support team.