Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/prime/src/prime_cli/commands/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,7 @@ def get_install_command(
# Use -P to only upgrade this package, not its dependencies
cmd.extend(["-P", package_name])
cmd.append(wheel_url)
cmd.append("--system")
return cmd
elif tool == "pip":
cmd = ["pip", "install"]
Expand Down Expand Up @@ -2500,6 +2501,7 @@ def install(
# Use -P to only upgrade this package, not its dependencies
cmd_parts.extend(["-P", normalized_name])
cmd_parts.append(str(wheel_path))
cmd_parts.append("--system")
if prerelease:
cmd_parts.append("--prerelease=allow")
else:
Expand Down Expand Up @@ -3204,6 +3206,7 @@ def _build_install_command(
# Add URL dependencies as direct requirements (uv requires this)
if url_dependencies:
cmd.extend(url_dependencies)
cmd.append("--system")
cmd.extend(["--extra-index-url", simple_index_url])
# Hub simple index doesn't emit PEP 700 upload-time metadata, so any
# exclude-newer cutoff on the consumer side filters hub wheels
Expand Down Expand Up @@ -3281,6 +3284,7 @@ def _install_single_environment(env_slug: str, tool: str = "uv", prerelease: boo
cmd_parts = _uv_pip_command("install", "-P", normalized_name, str(wheel_path))
if prerelease:
cmd_parts.append("--prerelease=allow")
cmd_parts.append("--system")
else:
cmd_parts = ["pip", "install", "--upgrade", str(wheel_path)]
if prerelease:
Expand Down