Skip to content
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

Add tag incompatibility hints to sync failures #10739

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jan 18, 2025

Summary

These are very similar to (and computed in the same way as) the hints we should during a failed resolution, but for install-time.

Closes #10635.

Test Plan

As an example, when installing PyTorch on macOS with Python 3.13 (wheels exist for Linux):

error: Distribution `torch==2.5.1 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on macOS (`macosx_14_0_arm64`), but `torch` (v2.5.1) only has wheels for the following platform: `manylinux1_x86_64`

@charliermarsh charliermarsh added the error messages Messaging when something goes wrong label Jan 18, 2025
@charliermarsh charliermarsh force-pushed the charlie/sync-error-hint branch from c6d8e76 to d38a2dc Compare January 18, 2025 19:21
@charliermarsh charliermarsh force-pushed the charlie/sync-error-hint branch from d38a2dc to da9fcee Compare January 18, 2025 19:28
@charliermarsh charliermarsh requested a review from zanieb January 18, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indicate platform or Python version mismatch in uv sync errors
1 participant