-
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
Workspace wheel file cannot be installed if more than one workspace subpackage dependencies are specified #11587
Comments
The wheel built by |
I don't quite understand why it works with just one workspace package though, and not with 2. For this specific case, I just checked again in a clean env that as long as there is only one workspace dependency, it installs just fine:
It only fails if the second workspace dependency is added, which is why this seems like a bug to me.
|
Or, if you meant that the installation is expected to fail if one tries to use other installation methods that are not UV, then I understand, but it's then not related to this case, since I'm adding the wheel using uv |
Summary
In a workspace package, the wheel resulting from uv build can be installed if only one sub-package is defined.
However, from 2 subpackage workspace dependencies, the wheel dependencies cannot be resolved, failing with error:
No solution found when resolving dependencies:
╰─▶ Because packtwo was not found in the package registry and uv-pack==0.1.0 depends on packtwo, we can conclude that
uv-pack==0.1.0 cannot be used.
And because only uv-pack==0.1.0 is available and your project depends on uv-pack, we can conclude that your project's
requirements are unsatisfiable.
MRE:
The resulting wheel installed in a different env causes the error above, but running this command in the same env produces no errors:
uv run --with uv_pack --no-project -- python -c "import uv_pack"
Platform
Ubuntu on WSL
Version
uv 0.6.1
Python version
3.10.12
The text was updated successfully, but these errors were encountered: