Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions openage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2023 the openage authors. See copying.md for legal info.
# Copyright 2013-2026 the openage authors. See copying.md for legal info.

"""
The Python part of openage, a free engine re-write of
Expand Down Expand Up @@ -41,9 +41,7 @@
f"Mako {config.MAKOVERSION}\n"
f"NumPy {config.NUMPYVERSION}\n"
f"Pillow {config.PILVERSION}\n"
f"Pygments {config.PYGMENTSVERSION}\n"
"\n"
"== C++ =="
f"Pygments {config.PYGMENTSVERSION}"
)


Expand Down
31 changes: 26 additions & 5 deletions openage/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2015-2024 the openage authors. See copying.md for legal info.
# Copyright 2015-2026 the openage authors. See copying.md for legal info.
#
# pylint: disable=too-many-statements
"""
Expand All @@ -22,12 +22,33 @@ def print_version():
The default version printer, unfortunately, inserts newlines.
This is the easiest way around.
"""
import platform

from . import LONGVERSION
print(LONGVERSION)
from .versions.versions import get_version_numbers
version_numbers = get_version_numbers()
for key in version_numbers:
print(key.decode("utf8") + " " + version_numbers[key].decode("utf8"))

print()
print("== Platform ==")
print(f"System {platform.system()} {platform.release()}")
print(f"Version {platform.version()}")
print(f"Architecture {platform.machine()}")
print(f"Python impl {platform.python_implementation()} {platform.python_version()}")
print(f"Executable {sys.executable}")
print(f"openage path {os.path.dirname(os.path.realpath(__file__))}")
libc_lib, libc_ver = platform.libc_ver()
if libc_lib:
print(f"libc (probe) {libc_lib} {libc_ver}")

print()
print("== C++ ==")
try:
from .versions.versions import get_version_numbers
except ImportError:
print("(unavailable; openage.versions Cython module not built)")
else:
version_numbers = get_version_numbers()
for key in version_numbers:
print(key.decode("utf8") + " " + version_numbers[key].decode("utf8"))
sys.exit(0)


Expand Down
Loading