You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: xformers==0.0.28
Caused by: Build backend failed to determine extra requires with `build_wheel()` with exit status: 1
--- stdout:
--- stderr:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/user/Library/Caches/uv/builds-v0/.tmpCHWnFA/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/Library/Caches/uv/builds-v0/.tmpCHWnFA/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/Users/user/Library/Caches/uv/builds-v0/.tmpCHWnFA/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "/Users/user/Library/Caches/uv/builds-v0/.tmpCHWnFA/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 24, in <module>
ModuleNotFoundError: No module named 'torch'
---
The text was updated successfully, but these errors were encountered:
Ah I see, thank you! Yeah so currently installation is a two-step process:
pip install torch
pip install xformers
I was sort of hoping uv could somehow convert that to be a one-step process, but it doesn't seem to be the case:
uv sync --extra build
Note: the extra build= ["torch"]
uv sync --extra xformers
Note: relies on no-build-isolation-package = ["xformers"] being in tool.uv
Do you think it's a reasonable request to uv to somehow support this use case as a one-step process? In other words, make it less of a special case from an installer's perspective
I am using
uv==0.4.16
, and there are two packages that make my life annoying because theirsetup.py
depends ontorch
:How can
uv sync
work with this scenario? Currently, it successfully makes auv.lock
, but then fails onuv sync
:The text was updated successfully, but these errors were encountered: