aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/setup.py.in
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-12 14:19:07 +0000
committerJustus Winter <[email protected]>2016-09-12 14:19:07 +0000
commit70999d81618b3d3ae6b61a43be2ce703ad284275 (patch)
treedbb42cfd369942a5362ed940b07b8d2330443bb6 /lang/python/setup.py.in
parentpython: Do not rely on subprocess.DEVNULL. (diff)
downloadgpgme-70999d81618b3d3ae6b61a43be2ce703ad284275.tar.gz
gpgme-70999d81618b3d3ae6b61a43be2ce703ad284275.zip
python: Avoid hardcoding the interpreter.
* lang/python/setup.py.in: Avoid hardcoding the interpreter. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/setup.py.in')
-rwxr-xr-xlang/python/setup.py.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in
index 4477e096..22035cbe 100755
--- a/lang/python/setup.py.in
+++ b/lang/python/setup.py.in
@@ -88,9 +88,9 @@ if not os.path.exists(gpg_error_h):
print("Building pyme3 using {} and {}.".format(gpgme_h, gpg_error_h))
# Cleanup gpgme.h from deprecated functions and typedefs.
-subprocess.check_call(["python3", "gpgme-h-clean.py", gpgme_h],
+subprocess.check_call([sys.executable, "gpgme-h-clean.py", gpgme_h],
stdout=open("gpgme.h", "w"))
-subprocess.check_call(["python3", "gpgme-h-clean.py", gpg_error_h],
+subprocess.check_call([sys.executable, "gpgme-h-clean.py", gpg_error_h],
stdout=open("errors.i", "w"))
include_dirs = [os.getcwd()]