-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv sync
removes editable install if [build-system]
is not specified
#9518
Comments
This is intentional. Outside of the |
But if that is the case, why does the following work? mkdir myproject && cd myproject
uv init
mkdir -p src/foo
touch src/foo/__init__.py
uv venv --seed
source .venv/bin/activate
uv pip install -e .
python -c "import foo" |
That's a difference between the project APIs (where we use this behavior) and the |
Notably, |
It seems this is because if
[build-system]
is missing, thenuv.lock
sayssource = { virtual = "." }
, and with itsource = { editable = "." }
. (see comment by @atomiechen in #1626 (comment)):The lack of
[build-system]
should not prevent treating the package as editable. This is consistent with PEP 518 and PyPA specificationAlternatively, if this is not possible, it would make more sense if
uv
issued a warning/error when attempting touv pip install -e .
a package without[build-system]
.The text was updated successfully, but these errors were encountered: