Skip to content

openage --version: add Platform block#1798

Open
nicolassanchez02 wants to merge 1 commit into
SFTtech:masterfrom
nicolassanchez02:feature/version-verbosity
Open

openage --version: add Platform block#1798
nicolassanchez02 wants to merge 1 commit into
SFTtech:masterfrom
nicolassanchez02:feature/version-verbosity

Conversation

@nicolassanchez02
Copy link
Copy Markdown
Contributor

@nicolassanchez02 nicolassanchez02 commented May 28, 2026

Merge Checklist

When someone files a bug and we ask for openage --version, we get the dependency versions but nothing about their machine, so the OS/arch/Python is always a follow-up question. This adds a == Platform == block with that info (all stdlib, so it works on a tree that isn't built yet) and wraps the existing C++ version block in a try/except, so running it from a half-configured checkout prints a clear "not built" line instead of an ImportError traceback.

Left the OpenGL version out, that needs a live GL context and I didn't want to start the renderer just to answer --version.

Refs #1185.

The --version dump is what we ask users for when triaging crashes, so
it should carry enough host info to tell macOS-on-Apple-Silicon apart
from Windows-on-AMD64 without a follow-up question. Adds a Platform
section with system, kernel, arch, Python implementation, the
interpreter path, the openage install path, and the glibc version on
Linux. All stdlib, no new deps.

Also moves the "== C++ ==" header out of LONGVERSION so it can be
printed conditionally, and falls back to a clear "Cython module not
built" line when openage.versions hasn't been compiled yet (e.g. when
running --version from a partially configured tree).

OpenGL version is still TODO; it needs a live GL context, which we
don't want to spin up just to satisfy --version. Left as a follow-up.

Refs SFTtech#1185.
@nicolassanchez02
Copy link
Copy Markdown
Contributor Author

The macOS-CI failure here isn't anything in this PR: configure aborts at find_package(Eigen3 3.3) rejecting the Eigen 5 the runner ships, before the build runs. That's the issue #1801 fixes. Once #1801 lands I'll rebase this onto master and the check goes green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant