mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-15 21:09:46 +00:00
![]() ## Summary Closes https://github.com/astral-sh/uv/issues/5435. ## Test Plan Before: ``` ❯ ls -l .venv/lib/python3.12/site-packages/httpx-0.27.0.dist-info total 48 -rw------- 1 crmarsh staff 2 Jul 25 14:21 INSTALLER -rw-r--r-- 1 crmarsh staff 7184 Jul 23 23:20 METADATA -rw-r--r-- 1 crmarsh staff 2541 Jul 25 14:21 RECORD -rw------- 1 crmarsh staff 0 Jul 25 14:21 REQUESTED -rw-r--r-- 1 crmarsh staff 87 Jul 23 23:20 WHEEL -rw-r--r-- 1 crmarsh staff 37 Jul 23 23:20 entry_points.txt drwxr-xr-x 3 crmarsh staff 96 Jul 25 14:21 licenses ``` After: ``` ❯ ls -l .venv/lib/python3.12/site-packages/flask-3.0.3.dist-info/ total 48 -rw-r--r-- 1 crmarsh staff 2 Jul 25 14:21 INSTALLER -rw-r--r-- 1 crmarsh staff 1475 Jul 25 14:21 LICENSE.txt -rw-r--r-- 1 crmarsh staff 3177 Jul 25 14:21 METADATA -rw-r--r-- 1 crmarsh staff 2565 Jul 25 14:21 RECORD -rw-r--r-- 1 crmarsh staff 0 Jul 25 14:21 REQUESTED -rw-r--r-- 1 crmarsh staff 81 Jul 25 14:21 WHEEL -rw-r--r-- 1 crmarsh staff 40 Jul 25 14:21 entry_points.txt ``` |
||
---|---|---|
.. | ||
src | ||
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.