mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
![]() ## Summary Closes https://github.com/astral-sh/uv/issues/2956 This changes the bootstrap launcher script to use `pythonw.exe` instead of `python.exe` on `gui_scripts` via a helper fn both in the shebang and the python exe path encoded before `UVUV` magic, that way uv-trampoline's `find_python_exe` can use the right pythonw executable. ## Test Plan New unit tests for the helper was added. Tested on example from #2956 on Windows to make sure it works as expected. ## Questions I noticed the docs in `fn windows_script_launcher` says ```The launcher will look for `python[w].exe` adjacent to it in the same directory to start the embedded script.``` but I didn't find such functionality when I looked in uv-trampoline. I only saw `clear_app_starting_state` getting called when `is_gui` is set. Was the intention to do this in uv-trampoline at some point instead? --------- Co-authored-by: konstin <konstin@mailbox.org> |
||
---|---|---|
.. | ||
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.