-
Notifications
You must be signed in to change notification settings - Fork 721
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 does not install dynamic build dependencies before preparing metadata #1582
Comments
This is maybe related to an issue I'm encountering (trying to install the LLM finetuning lib axolotl):
Running "uv pip install packaging" separately doesn't resolve this. |
@sbidoul - Thank you for this. I thought it was safe to skip |
the minimal repro for this is |
I think the solutions may be different.
|
## Summary I want to revisit this as I think it's still skippable in some cases, but for now, let's be more conservative. Closes #1582. ## Test Plan Cloned `https://github.com/OCA/mis-builder/blob/3aea4235697bac0f74d446e610e2b934b0994e06/setup/mis_builder/setup.py#L4`, and ran `cargo run pip install -e mis_builder`.
The official way to install flash-attn is using |
We might want to track that use-case in a separate issue. |
It seems
get_requires_for_build_wheel
is not invoked beforeprepare_metadata_for_build_wheel
.This means dynamic build dependencies are not installed before preparing metadata.
Here is a reproducer.
uv pip install -v --no-deps "odoo-addon-mis_builder @ git+https://github.com/OCA/mis-builder@16.0#subdirectory=setup/mis_builder"
This fails about an invalid Name metadata, where it should succeed. This is most likely because the dynamic build dependency
setuptools-odoo
which is declared in setup.py has not been installed in the build environment.With setuptools,
setup_requires
entries are returned byget_requires_for_build_wheel
and must be installed before preparing metadata.The text was updated successfully, but these errors were encountered: