1
0
Fork 0
mirror of https://github.com/ArtemSBulgakov/buildozer-action.git synced 2024-08-16 10:09:52 +02:00

Use sys.executable -m pip to install buildozer

This commit is contained in:
Artem Bulgakov 2020-07-31 22:44:16 +03:00 committed by GitHub
parent eed8bb6cc5
commit 3db9653116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ order.
"""
import os
import sys
import subprocess
from os import environ as env
@ -42,7 +43,7 @@ def fix_home():
def install_buildozer(buildozer_version):
# Install required Buildozer version
print("::group::Installing Buildozer")
pip_install = "pip3 install --user --upgrade".split()
pip_install = [sys.executable] + "-m pip install --user --upgrade".split()
if buildozer_version == "stable":
# Install stable buildozer from PyPI
subprocess.check_call([*pip_install, "buildozer"])