diff options
author | Alon Bar-Lev <[email protected]> | 2017-04-10 22:55:13 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-04-11 08:16:47 +0000 |
commit | d785c053a982bddefd7014dc6856d1af345fe9fb (patch) | |
tree | 25a6c82ba0918992a459a8eff0cf675d81f28f86 | |
parent | python: Prune CLEANFILES. (diff) | |
download | gpgme-d785c053a982bddefd7014dc6856d1af345fe9fb.tar.gz gpgme-d785c053a982bddefd7014dc6856d1af345fe9fb.zip |
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 <[email protected]>
-rw-r--r-- | lang/python/tests/run-tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/python/tests/run-tests.py b/lang/python/tests/run-tests.py index 78a0ec24..95df1978 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*") |