uv/scripts/editable-installs
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
..
black_editable Add support for extras in editable requirements (#1531) 2024-02-16 18:48:35 -05:00
hatchling_editable Remove current directory from PATH in PEP 517 hooks (#1975) 2024-02-26 01:14:14 +00:00
maturin_editable Add Poetry support to bench.py (#803) 2024-01-06 02:52:55 +00:00
poetry_editable Allow URL requirements in editable installs (#1614) 2024-02-17 15:20:23 -05:00
setuptools_editable Add support for config_settings in PEP 517 hooks (#1833) 2024-02-23 00:53:45 +00:00
requirements.in Support editable in pip-sync and pip-compile (#587) 2023-12-16 22:37:34 +00:00
requirements.txt Support editable in pip-sync and pip-compile (#587) 2023-12-16 22:37:34 +00:00