From 2ba11f9bfb1f51a481eb1240b8cf2c8ad260c222 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 14 Dec 2022 15:12:41 +0900 Subject: [PATCH] doc:python: Replace gpgme-config to pkg-config. -- Signed-off-by: NIIBE Yutaka --- lang/python/doc/src/gpgme-python-howto.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/python/doc/src/gpgme-python-howto.org b/lang/python/doc/src/gpgme-python-howto.org index 046b2e07..2121fe65 100644 --- a/lang/python/doc/src/gpgme-python-howto.org +++ b/lang/python/doc/src/gpgme-python-howto.org @@ -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()