utilities from platform detection
Project description
This is a project started to coordinate between LHCb Core Software and LHCbDirac platform compatibility information.
It follows up on discussions in
LHCBDIRAC-158: Fixing “Platforms” and “SystemConfig” parameters
LBCORE-1247: extend lb-run to understand the special platform “best”
OS Id Derivation
The OS Id (os_id) is a short string used to identify the Operating System (e.g. Linux flavour, MacOS, Windows…) and its version, usually in the format <name><version>.
On Linux, the OS Id is computed from different possible sources:
- file /etc/os-release [1]
the name is extracted from the field ID, up the first (optional) -
- the version is extracted from the field VERSION_ID
if ID or ID_LIKE contain rhel or suse we keep only up to the first .
otherwise we remove all occurrences of .
if VERSION_ID is not present and the name is debian we set the version to testing
- file /etc/redhat-release
- the name is
slc if it contains CERN
sl if it contains Scientific Linux
centos if it contains CentOS
rhel if it contains Red Hat Enterprise Linux
the version is the number after the word release, up to the first .
- file /etc/lsb-release
the name is extracted from the field DISTRIB_ID, up the first (optional) -, and made lowercase
the version is extracted from the field DISTRIB_RELEASE removing all occurrences of .
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
Built Distributions
Hashes for LbPlatformUtils-4.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 921f4454ae5444b8bdc0138cff55489e31d44ed8e27631c8bad02d2f94fc5210 |
|
MD5 | 7c82aa426302b02f69da0720f6b4624d |
|
BLAKE2b-256 | a949bb34c80129b5c4bdd3fbcadd7bf5cd479c743a90f57500b4bf65d170c53d |
Hashes for LbPlatformUtils-4.2.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47061cd40465fb9f938b5d5c8164968c7ffd6abae16c7e416d14e19d29b55837 |
|
MD5 | 32f39eebedd9105cd42018c42ac595a2 |
|
BLAKE2b-256 | 0832a8e18a2dda458afcc2a6add6bd6f96acc16d6a4d5e8d14b0a2a839401c62 |