From 2b46f01fe300e61d11e134605472221bbd4a606c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 26 Sep 2019 12:19:21 +0200 Subject: [PATCH] Use sys.executable in install_python_bindings.py When calling pip this way, the virtualenv is used even if not activated. --- python/install_python_bindings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/install_python_bindings.py b/python/install_python_bindings.py index 30e766d59..1bada38ad 100755 --- a/python/install_python_bindings.py +++ b/python/install_python_bindings.py @@ -6,7 +6,7 @@ import os import subprocess -import os +import sys if __name__ == "__main__": os.environ["DCC_RS_TARGET"] = target = "release" @@ -21,5 +21,5 @@ if __name__ == "__main__": subprocess.check_call("rm -rf build/ src/deltachat/*.so" , shell=True) subprocess.check_call([ - "pip", "install", "-e", "." + sys.executable, "-m", "pip", "install", "-e", "." ])