Skip to content

Commit e78fd5e

Browse files
Fix: CI Python test job not finding Rust modules
Changed wheel installation from `uv pip install` to direct pip execution in the virtual environment. With uv's managed mode, packages installed via `uv pip install` weren't properly visible to `uv run python` because they aren't declared in the lockfile. Changes: - Use `.venv\Scripts\pip.exe` directly to bypass uv lockfile enforcement - Add `--no-deps` flag since Rust bindings are standalone cdylib modules - Add debug output to list downloaded wheels - Add verification step to confirm classic* packages are installed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ec0732b commit e78fd5e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,17 @@ jobs:
301301
- name: Install Python dependencies and wheels
302302
run: |
303303
uv sync --all-extras
304+
# List downloaded wheels for debugging
305+
Write-Host "Downloaded wheels:"
306+
Get-ChildItem -Path wheels -Filter *.whl -Recurse | ForEach-Object { Write-Host " $($_.FullName)" }
307+
# Install wheels using pip directly for compatibility with uv managed mode
308+
# The venv is at .venv by default with uv
304309
Get-ChildItem -Path wheels -Filter *.whl -Recurse | ForEach-Object {
305-
uv pip install $_.FullName --force-reinstall
310+
.venv\Scripts\pip.exe install $_.FullName --force-reinstall --no-deps
306311
}
312+
# Verify installation
313+
Write-Host "Installed packages (classic*):"
314+
.venv\Scripts\pip.exe list | Select-String "classic"
307315
shell: pwsh
308316

309317
- name: Verify Rust acceleration

0 commit comments

Comments
 (0)