mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-09 22:35:01 +00:00
![]() ## Summary For PEP 517 builds, the current working directory needs to be set to the directory of the source distribution. It turns out that on Windows, if you use a UNC path for the working directory, then relative paths are interpreted relative to the root of the current drive ([source](https://www.fileside.app/blog/2023-03-17_windows-file-paths/#paths-relative-to-the-root-of-the-current-drive)). So, when builds attempted to resolve relative paths, they always errored... This PR ensures that we remove the UNC prefix when setting the current working directory. Closes #1238. ## Test Plan I tested this on my Windows machine by installing `ujson` with `--no-binary ujson`. (I don't want to add that specific test, since it's really slow to build.) |
||
---|---|---|
.. | ||
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.