mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
tests: Fix running python condition.
* tests/gpgme/gpgme-defs.scm (run-python-tests?): We need Python. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
d82abbb1b6
commit
a672ddec03
@ -175,9 +175,10 @@
|
||||
(define python (catch #f
|
||||
(path-expand "python" (string-split (getenv "PATH") *pathsep*))))
|
||||
(define (run-python-tests?)
|
||||
(let* ((python-version
|
||||
(string-trim char-whitespace?
|
||||
(call-popen `(,python -c "import sys; print('{0}.{1}'.format(sys.version_info[0], sys.version_info[1]))") "")))
|
||||
(build-path (path-join gpgme-builddir "lang" "python"
|
||||
(string-append "python" python-version "-gpg"))))
|
||||
(trace (file-exists? (trace build-path)))))
|
||||
(and python
|
||||
(let* ((python-version
|
||||
(string-trim char-whitespace?
|
||||
(call-popen `(,python -c "import sys; print('{0}.{1}'.format(sys.version_info[0], sys.version_info[1]))") "")))
|
||||
(build-path (path-join gpgme-builddir "lang" "python"
|
||||
(string-append "python" python-version "-gpg"))))
|
||||
(trace (file-exists? (trace build-path))))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user