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:
parent
eed8bb6cc5
commit
3db9653116
1 changed files with 2 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Reference in a new issue