mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00

This PR copies over the `install-wheel-rs` crate at commit `10730ea1a84c58af6b35fb74c89ed0578ab042b6` with no modifications. It won't pass CI, but modifications will intentionally be confined to later PRs.
14 lines
515 B
Markdown
14 lines
515 B
Markdown
Reimplementation of wheel installing in rust. Supports both classical venvs and monotrail.
|
|
|
|
There are simple python bindings:
|
|
|
|
```python
|
|
from install_wheel_rs import LockedVenv
|
|
|
|
locked_venv = LockedVenv("path/to/.venv")
|
|
locked_venv.install_wheel("path/to/some_tagged_wheel.whl")
|
|
```
|
|
|
|
and there's only one function: `install_wheels_venv(wheels: List[str], venv: str)`, where `wheels` is a list of paths to wheel files and `venv` is the location of the venv to install the packages in.
|
|
|
|
See monotrail for benchmarks.
|