fix #2588 breaking launch.py (. . .)
This commit is contained in:
parent
c24df4b486
commit
f756bc540a
1 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ import platform
|
||||||
dir_repos = "repositories"
|
dir_repos = "repositories"
|
||||||
python = sys.executable
|
python = sys.executable
|
||||||
git = os.environ.get('GIT', "git")
|
git = os.environ.get('GIT', "git")
|
||||||
index_url = os.environ.get('INDEX_URL',"")
|
index_url = os.environ.get('INDEX_URL', "")
|
||||||
|
|
||||||
|
|
||||||
def extract_arg(args, name):
|
def extract_arg(args, name):
|
||||||
|
@ -58,7 +58,8 @@ def run_python(code, desc=None, errdesc=None):
|
||||||
|
|
||||||
|
|
||||||
def run_pip(args, desc=None):
|
def run_pip(args, desc=None):
|
||||||
return run(f'"{python}" -m pip {args} --prefer-binary{f' --index-url {index_url}' if index_url!='' else ''}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
|
index_url_line = f' --index-url {index_url}' if index_url != '' else ''
|
||||||
|
return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
|
||||||
|
|
||||||
|
|
||||||
def check_run_python(code):
|
def check_run_python(code):
|
||||||
|
|
Loading…
Reference in a new issue