doc:python: Replace gpgme-config to pkg-config.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-12-14 15:12:41 +09:00
parent e7953dcf13
commit 2ba11f9bfb
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -3124,7 +3124,7 @@ minimum required version of GPGME is in use.
For the most part the =gpg.version.versionstr= and
=gpg.version.versionlist= methods have been quite sufficient. The
former returns the same string as =gpgme-config --version=, while the
former returns the same string as =pkg-config gpgme --modversion=, while the
latter returns the major, minor and patch values in a list.
To check if the installed bindings have actually been built against
@ -3135,7 +3135,7 @@ import gpg
import subprocess
import sys
gpgme_version_call = subprocess.Popen(["gpgme-config", "--version"],
gpgme_version_call = subprocess.Popen(["pkg-config", "gpgme", "--modversion"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
gpgme_version_str = gpgme_version_call.communicate()