2019-12-09 23:35:31 +03:00
|
|
|
"""
|
|
|
|
Print out some handy system info like Travis CI does.
|
|
|
|
|
|
|
|
This sort of info is missing from GitHub Actions.
|
|
|
|
|
|
|
|
Requested here:
|
|
|
|
https://github.com/actions/virtual-environments/issues/79
|
|
|
|
"""
|
2024-02-05 20:18:49 +03:00
|
|
|
|
2023-12-21 14:13:31 +03:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2019-12-09 23:35:31 +03:00
|
|
|
import os
|
|
|
|
import platform
|
|
|
|
import sys
|
|
|
|
|
|
|
|
print("Build system information")
|
|
|
|
print()
|
|
|
|
|
|
|
|
print("sys.version\t\t", sys.version.split("\n"))
|
|
|
|
print("os.name\t\t\t", os.name)
|
|
|
|
print("sys.platform\t\t", sys.platform)
|
|
|
|
print("platform.system()\t", platform.system())
|
|
|
|
print("platform.machine()\t", platform.machine())
|
|
|
|
print("platform.platform()\t", platform.platform())
|
|
|
|
print("platform.version()\t", platform.version())
|
|
|
|
print("platform.uname()\t", platform.uname())
|
2019-12-13 16:44:01 +03:00
|
|
|
if sys.platform == "darwin":
|
|
|
|
print("platform.mac_ver()\t", platform.mac_ver())
|