mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 04:48:18 +00:00
Similar to #516, but for individual files. ## Test Plan Ran: ```sh cargo run -p puffin-cli -- pip-uninstall plaid-python mkdir -p /Users/crmarsh/workspace/puffin/.venv/lib/python3.10/site-packages/tests echo "x=1" > /Users/crmarsh/workspace/puffin/.venv/lib/python3.10/site-packages/tests/__init__.py cargo run -p puffin-cli -- pip-sync requirements.txt --no-cache --verbose ``` |
||
|---|---|---|
| .. | ||
| src | ||
| windows-launcher | ||
| Cargo.toml | ||
| Readme.md | ||
Reimplementation of wheel installing in rust. Supports both classical venvs and monotrail.
There are simple python bindings:
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.