Skip to content

Disable SYSTEM_VERSION_COMPAT when querying interpreters on macOS#18452

Merged
zanieb merged 3 commits intomainfrom
18436-fix-macos-conda-platform-tags2
Mar 14, 2026
Merged

Disable SYSTEM_VERSION_COMPAT when querying interpreters on macOS#18452
zanieb merged 3 commits intomainfrom
18436-fix-macos-conda-platform-tags2

Conversation

@zanieb
Copy link
Copy Markdown
Member

@zanieb zanieb commented Mar 13, 2026

Closes #14267
Replaces #18436 — adding my review because I cannot push there
Replaces #18416

edschofield and others added 3 commits March 13, 2026 11:54
Conda interpreters built against older macOS SDKs (e.g.,
MACOSX_DEPLOYMENT_TARGET=10.15) trigger Apple's compatibility   shim,
causing `platform.mac_ver()` to return "10.16" instead of the real macOS
version. This leads to incorrect platform tags (e.g., `macosx_10_16`
instead of `macosx_14_0`), which prevents uv from seeing the correct
list of available packages.

Setting `SYSTEM_VERSION_COMPAT=0` on the subprocess disables
the shim so the script sees the true OS version.

Fixes #14267
@zanieb zanieb added the bug Something isn't working label Mar 13, 2026
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worry this may break cases that we can't predict, but I don't know how else to build confidence in the change.

@zanieb
Copy link
Copy Markdown
Member Author

zanieb commented Mar 14, 2026

I'm also a little worried about that

@zanieb
Copy link
Copy Markdown
Member Author

zanieb commented Mar 14, 2026

I reproduced the issue in #18461 and cherry-picking this fix resolved it.

@zanieb zanieb merged commit fe5ca6c into main Mar 14, 2026
54 checks passed
@zanieb zanieb deleted the 18436-fix-macos-conda-platform-tags2 branch March 14, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Packages that pip can install but uv pip cannot install in a conda env

3 participants