Use sys.executable in install_python_bindings.py

When calling pip this way, the virtualenv is used even if not activated.
This commit is contained in:
Florian Bruhin
2019-09-26 12:19:21 +02:00
committed by holger krekel
parent 8d702d0b77
commit 2b46f01fe3

View File

@@ -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", "."
])