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
File details
Details for the file LbPlatformUtils-4.2.5.tar.gz
.
File metadata
- Download URL: LbPlatformUtils-4.2.5.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40de871d8e1add521317f5cef5ffd285f78eb48887ab9379a10c521c03f73ca0 |
|
MD5 | 140c543396c10231b731359bb0681843 |
|
BLAKE2b-256 | 43022c9e962d3f32428eef1bf0114815daf98a18f17aca900dac4466dc19d725 |
File details
Details for the file LbPlatformUtils-4.2.5-py3-none-any.whl
.
File metadata
- Download URL: LbPlatformUtils-4.2.5-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76960bbaf365f94352efaffdfef37aa76ce27abb9827c4d73d16bdb870626b92 |
|
MD5 | 885724fb4496e2753c470642299da1ad |
|
BLAKE2b-256 | 31819ac39ee8d16ee0734c3fe679c01a7a9b0850788a069dca67881211b9bedb |
File details
Details for the file LbPlatformUtils-4.2.5-py2-none-any.whl
.
File metadata
- Download URL: LbPlatformUtils-4.2.5-py2-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c4b8f70ba6a400753ec0982c73c655335b599c19fbe015a42bb752e9e04cd21 |
|
MD5 | fca67a810a25c8f67616e5e9a2df203d |
|
BLAKE2b-256 | 8734617479981b8bbc66f7d10ab02c609366b4bfea50069bf208bce30ac98a33 |