Compare commits

...

3 Commits

19 changed files with 37 additions and 37 deletions

View File

@ -76,7 +76,7 @@ def main() -> None:
if uv and (is_uv_managed_python or not need_user_flag):
pip_args = [uv, "pip", "install"]
elif sys.executable:
pip_args = [sys.executable, "-mpip", "install"]
pip_args = [sys.executable, "-m", "pip", "install"]
else:
pip_args = ["pip3", "install"]

View File

@ -642,7 +642,7 @@ def get_pip_packages(run_lambda, patterns=None):
# People generally have pip as `pip` or `pip3`
# But here it is invoked as `python -m pip`
out = run_and_read_all(
run_lambda, [sys.executable, "-mpip", "list", "--format=freeze"]
run_lambda, [sys.executable, "-m", "pip", "list", "--format=freeze"]
)
if out is None:
return pip_version, out