uv/scripts
Charlie Marsh 088fa97369
Remove current directory from PATH in PEP 517 hooks (#1975)
## Summary

When you invoke `python -c`, an empty string is prepended to `sys.path`,
which allows loading modules in the current directory
(https://docs.python.org/3/using/cmdline.html#cmdoption-P). However, in
PEP 517 builds, the current directory should _not_ be part of the path.
There's a flag we can use to disable this behavior (`-P`), but it's only
available in Python 3.11 and later, so instead, I'm doing something
similar to pip's `__main__.py`, which avoids this for `python -m pip`
invocations.

Closes https://github.com/astral-sh/uv/issues/1972.
2024-02-26 01:14:14 +00:00
..
bench fix: remove uv version from uv pip compile header (#1716) 2024-02-19 20:26:53 +00:00
benchmarks Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
bootstrap Add musl to python bootstrapping script (#1758) 2024-02-22 10:46:48 +01:00
compare_with_pip Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
editable-installs Remove current directory from PATH in PEP 517 hooks (#1975) 2024-02-26 01:14:14 +00:00
popular_packages Finish install-many with pypi 10k most dependents (#732) 2023-12-27 09:42:51 -05:00
release Update the lockfile in release/bump.sh (#1924) 2024-02-23 13:45:46 -06:00
requirements fix: remove uv version from uv pip compile header (#1716) 2024-02-19 20:26:53 +00:00
scenarios Make < exclusive for non-prerelease markers (#1878) 2024-02-24 18:02:03 -05:00
wheels Win Trampoline: Use Python executable path encoded in binary (#1803) 2024-02-22 16:10:02 +01:00