diff --git a/pygmt/_show_versions.py b/pygmt/_show_versions.py index 176d77e3f1d..bb22c846ff9 100644 --- a/pygmt/_show_versions.py +++ b/pygmt/_show_versions.py @@ -166,7 +166,7 @@ def show_versions(file: TextIO | None = sys.stdout) -> None: lines.extend([f" {key}: {val}" for key, val in sys_info.items()]) lines.append("Dependency information:") lines.extend([f" {key}: {val}" for key, val in dep_version.items()]) - lines.append("GMT library information:") + lines.append("GMT information:") lines.extend([f" {key}: {val}" for key, val in _get_clib_info().items()]) if warnmsg := _check_ghostscript_version(dep_version["ghostscript"]): diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index 8c6cdc1252e..a17b2ec8261 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -197,7 +197,8 @@ def info(self) -> dict[str, str]: """ if not hasattr(self, "_info"): self._info = { - "version": self.get_default("API_VERSION"), + "version": self.get_default("API_BIN_VERSION"), + # "api version": self.get_default("API_VERSION"), "padding": self.get_default("API_PAD"), # API_BINDIR points to the directory of the Python interpreter # "binary dir": self.get_default("API_BINDIR"), @@ -209,7 +210,6 @@ def info(self) -> dict[str, str]: "cores": self.get_default("API_CORES"), "grid layout": self.get_default("API_GRID_LAYOUT"), "image layout": self.get_default("API_IMAGE_LAYOUT"), - "binary version": self.get_default("API_BIN_VERSION"), } return self._info