proj_flow.base.uname
The proj_flow.base.uname provides platform information usable in packaging.
- proj_flow.base.uname.uname() Tuple[str, str | None, str]
Return normalized information from
platformmodule.Specifically, the machine architecture is swapped from “amd64” to “x86_64”, which is more common in package filenames.
On Windows system, with OS not easily returning current version and with high level of backward compatibility, system version is removed all-together.
On Linux systems, true name of the system is retrieved, using
platform.freedesktop_os_release(). On systems, where Python is missing this function, a fallback is made to “linux” and version returned byplatform.uname().- Returns:
a tuple consisting of system name, version and machine architecture
- See:
./flow system command