diff options
author | Ben McGinnes <[email protected]> | 2018-12-16 06:12:21 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-12-16 06:12:21 +0000 |
commit | fbc298dc1b0fbb51ebc92a9d56c45b78c5e9989d (patch) | |
tree | 86621e63c67eda890e4804aa5497780d2ab1e755 /lang/python/doc/texinfo/gpgme-python-howto.texi | |
parent | python: examples bugfix (diff) | |
download | gpgme-fbc298dc1b0fbb51ebc92a9d56c45b78c5e9989d.tar.gz gpgme-fbc298dc1b0fbb51ebc92a9d56c45b78c5e9989d.zip |
python: howto and examples
* Tightening up both the documentation and some of the example code.
Tested-by: Ben McGinnes <[email protected]>
Signed-off-by: Ben McGinnes <[email protected]>
Diffstat (limited to 'lang/python/doc/texinfo/gpgme-python-howto.texi')
-rw-r--r-- | lang/python/doc/texinfo/gpgme-python-howto.texi | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lang/python/doc/texinfo/gpgme-python-howto.texi b/lang/python/doc/texinfo/gpgme-python-howto.texi index 552ef91b..7d505b4e 100644 --- a/lang/python/doc/texinfo/gpgme-python-howto.texi +++ b/lang/python/doc/texinfo/gpgme-python-howto.texi @@ -566,7 +566,7 @@ IMPORTANT Note If specifying a selected number of languages to create bindings for, try to leave Python last. Currently the majority of the other language bindings are also preceding Python of either version when -listed alphabetically and so that just happens by default currently. +listed alphabetically (not counting the Qt bindings). If Python is set to precede one of the other languages then it is possible that the errors described here may interrupt the build @@ -574,6 +574,12 @@ process before generating bindings for those other languages. In these cases it may be preferable to configure all preferred language bindings separately with alternative @samp{configure} steps for GPGME using the @samp{--enable-languages=$LANGUAGE} option. + +Alternatively @samp{make} (or @samp{gmake}, depending on your platform) may be +run with the the @samp{-k} option, which tells make to keep going even if +errors are encountered. In that case the failure of one language's +set of bindings to build should not hamper another language's bindings +to build. @end enumerate @node Reinstalling Responsibly @@ -3139,21 +3145,17 @@ if sys.platform == "win32": else: gpgconfcmd = "gpgconf --list-options gpg" -try: - lines = subprocess.getoutput(gpgconfcmd).splitlines() -except: - process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE) - procom = process.communicate() - if sys.version_info[0] == 2: - lines = procom[0].splitlines() - else: - lines = procom[0].decode().splitlines() +process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE) +procom = process.communicate() -for i in range(len(lines)): - if lines[i].startswith("group") is True: - line = lines[i] - else: - pass +if sys.version_info[0] == 2: + lines = procom[0].splitlines() +else: + lines = procom[0].decode().splitlines() + +for line in lines: + if line.startswith("group") is True: + break groups = line.split(":")[-1].replace('"', '').split(',') |