Detect the Linux distribution for the StorPool build system
Project description
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
sp_variant detect
- identify the current Linux distributionsp_variant show current
- show JSON data about the current distributionsp_variant show all
- show JSON data about all supported distributionssp_variant show NAME
- show JSON data about a specific distributionsp_variant command list
- show a list of distribution-specific commandssp_variant command run category.item [arg...]
- run a distribution-specific commandsp_variant repo add
- add the Apt or Yum repository definitions for the StorPool package repository
Basic Python API
The sp_variant.variant
module exports several constants and functions,
among them:
detect_variant()
- return an object describing the detected distributionget_variant()
- get an object describing the specified distributionget_by_alias()
- same, but specify the StorPool builder alias for the distributionget_all_variants()
- get objects describing all supported distributionscommand_run()
- run a distribution-specific command
Basic Rust API
The sp-variant
crate exports several constants and functions, among them:
build_variants()
- return information about all supported variantsdetect()
- get an object describing the detected distributionget_from()
- get an object describing the specified distributionget_by_alias_from()
- same, but specify the StorPool builder alias for the distribution
For more information, as well as for suggestions and problem reports, please contact the StorPool support team.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sp_variant-3.2.2.tar.gz
(41.8 kB
view hashes)
Built Distribution
sp_variant-3.2.2-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for sp_variant-3.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a87b0781a1ae1fc46400b5254e8b35742c35036ff092660aa38cf75fff35105f |
|
MD5 | e58accf7287d8d62fc7e410b4bcfeb1b |
|
BLAKE2b-256 | 753153cb1abce4fa5de0881a3d23f7f5696c8a0fca1873d59ba0ed2d5458b340 |