[Pkg-gnupg-commit] [gpgme] 24/103: python: fix run-tests missing python_libdir

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Dec 14 18:53:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit d785c053a982bddefd7014dc6856d1af345fe9fb
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date:   Tue Apr 11 01:55:13 2017 +0300

    python: fix run-tests missing python_libdir
    
    * lang/python/tests/run-tests.py: Set python_libdir if --python-libdir
    is set.
    
    Signed-off-by: Alon Bar-Lev <alon.barlev at gmail.com>
---
 lang/python/tests/run-tests.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lang/python/tests/run-tests.py b/lang/python/tests/run-tests.py
index 78a0ec2..95df197 100644
--- a/lang/python/tests/run-tests.py
+++ b/lang/python/tests/run-tests.py
@@ -72,7 +72,9 @@ for interpreter in args.interpreters:
     version = subprocess.check_output(
         [interpreter, "-c", "import sys; print('{0}.{1}'.format(sys.version_info[0], sys.version_info[1]))"]).strip().decode()
 
-    if not args.python_libdir:
+    if args.python_libdir:
+        python_libdir = args.python_libdir
+    else:
         pattern = os.path.join(args.builddir, "..",
                                "{0}-gpg".format(os.path.basename(interpreter)),
                                "lib*")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list