Skip to content
Merged
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
9 changes: 6 additions & 3 deletions riot/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def install_dev_pkg(
logger.warning("No Python setup file found. Skipping dev package installation.")
return

find_links_flag = f"--find-links {wheel_path}" if wheel_path else ""

# Determine installation method
if wheel_path:
# Install from wheels (two-step process to ensure we use only wheels from source)
Expand Down Expand Up @@ -130,20 +132,21 @@ def install_dev_pkg(
sys.exit(1)

# Step 2: Install the downloaded wheel
install_cmd = f"pip --disable-pip-version-check install '{tmp_dir}'/*.whl"
install_cmd = f"pip --disable-pip-version-check install {find_links_flag} '{tmp_dir}'/*.whl"
try:
run_cmd_venv(venv_path, install_cmd, env=dict(os.environ))
dev_pkg_lockfile.touch()
except CmdFailure as e:
logger.error("Wheel installation failed!\n%s", e.proc.stdout)
sys.exit(1)
else:
# Install in editable mode (current behavior)
# Install in editable mode (legacy behavior)

logger.info("Installing dev package (edit mode) in %s.", venv_path)
try:
run_cmd_venv(
venv_path,
"pip --disable-pip-version-check install -e .",
f"pip --disable-pip-version-check install {find_links_flag} -e .",
env=dict(os.environ),
)
dev_pkg_lockfile.touch()
Expand Down
Loading