Commit 1bab1797 authored by AUTOMATIC's avatar AUTOMATIC
Browse files

use parsed commandline args for --skip-install

parent ad7fd488
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -120,12 +120,12 @@ def run_python(code, desc=None, errdesc=None):
    return run(f'"{python}" -c "{code}"', desc, errdesc)


def run_pip(args, desc=None, live=False):
    if "--skip-install" in sys.argv:
def run_pip(command, desc=None, live=False):
    if args.skip_install:
        return

    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}", live=live)
    return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)


def check_run_python(code):