Skip to content

Commit

Permalink
cli_launcher: Update pip with "python -m pip"
Browse files Browse the repository at this point in the history
Pip wants run as "python -m pip" to selfupdate on Windows.  Make it happy.
  • Loading branch information
jackrosenthal committed Feb 12, 2024
1 parent 934bfe8 commit 9dd6108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ def build_venv() -> None:
symlinks=sys.platform != "win32",
with_pip=True,
).create(get_venv_dir())
quiet_run([venv_cmd("pip"), "install", "--upgrade", "pip"])
quiet_run([venv_cmd("python"), "-m", "pip", "install", "--upgrade", "pip"])
url = os.environ.get(
"ALGOBOWL_URL",
"https://github.com/jackrosenthal/algobowl/archive/refs/heads/main.zip",
)
quiet_run([venv_cmd("pip"), "install", "--upgrade", url])
quiet_run([venv_cmd("python"), "-m", "pip", "install", "--upgrade", url])


def update_venv() -> None:
Expand Down

0 comments on commit 9dd6108

Please sign in to comment.