[PATCH GPGME] python: fix run-tests missing python_libdir

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH GPGME] python: fix run-tests missing python_libdir

Alon Bar-Lev-3
* lang/python/tests/run-tests.py: Set python_libdir if --python-libdir
is set.

Signed-off-by: Alon Bar-Lev <[hidden email]>
---
 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*")
--
2.10.2


_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [PATCH GPGME] python: fix run-tests missing python_libdir

Justus Winter
Alon Bar-Lev <[hidden email]> writes:

> * lang/python/tests/run-tests.py: Set python_libdir if --python-libdir
> is set.

Merged, thanks!

Justus

_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

signature.asc (497 bytes) Download Attachment
Loading...