Skip to content

[macOS wheel] Add wheel platform tag vs dylib minos validation (#177609) - #177903

Merged
yangw-dev merged 1 commit into
mainfrom
release_211_validations
Mar 20, 2026
Merged

yangw-dev merged 1 commit into
mainfrom
release_211_validations

Conversation

@yangw-dev

Copy link
Copy Markdown
Contributor

Fixes #177140

Summary

Adds a check to validate that the macOS wheel platform tag matches the actual minos (minimum OS version) in the Mach-O binaries.

For example, given a wheel like:

torch-2.12.0.dev20260316-cp313-cp313t-macosx_11_0_arm64.whl

The platform tag claims macosx_11_0_arm64, meaning minos should be 11.0. This script runs otool -l on each installed .dylib and verifies the minos from LC_BUILD_VERSION (or LC_VERSION_MIN_MACOSX) matches 11.0.

Pull Request resolved: #177609
Approved by: https://github.com/atalman

Fixes #177140

# Summary
Adds a check to validate that the macOS wheel platform tag matches the actual minos (minimum OS version) in the Mach-O binaries.

For example, given a wheel like:
```
torch-2.12.0.dev20260316-cp313-cp313t-macosx_11_0_arm64.whl
```

The platform tag claims macosx_11_0_arm64, meaning minos should be 11.0. This script runs otool -l on each installed .dylib and verifies the minos from LC_BUILD_VERSION (or LC_VERSION_MIN_MACOSX) matches 11.0.

Pull Request resolved: #177609
Approved by: https://github.com/atalman
@yangw-dev
yangw-dev requested a review from a team as a code owner March 19, 2026 21:21
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Mar 19, 2026
@pytorch-bot

pytorch-bot Bot commented Mar 19, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177903

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit f5edb53 with merge base 14b40e9 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@yangw-dev

Copy link
Copy Markdown
Contributor Author

all check passed, merge

@yangw-dev
yangw-dev merged commit 8b5ba49 into main Mar 20, 2026
113 checks passed
AaronWang04 pushed a commit to AaronWang04/pytorch that referenced this pull request Mar 31, 2026
…ch#177609) (pytorch#177903)

Fixes pytorch#177140

# Summary
Adds a check to validate that the macOS wheel platform tag matches the actual minos (minimum OS version) in the Mach-O binaries.

For example, given a wheel like:
```
torch-2.12.0.dev20260316-cp313-cp313t-macosx_11_0_arm64.whl
```

The platform tag claims macosx_11_0_arm64, meaning minos should be 11.0. This script runs otool -l on each installed .dylib and verifies the minos from LC_BUILD_VERSION (or LC_VERSION_MIN_MACOSX) matches 11.0.

Pull Request resolved: pytorch#177609
Approved by: https://github.com/atalman
nklshy-aws pushed a commit to nklshy-aws/pytorch that referenced this pull request Apr 7, 2026
…ch#177609) (pytorch#177903)

Fixes pytorch#177140

# Summary
Adds a check to validate that the macOS wheel platform tag matches the actual minos (minimum OS version) in the Mach-O binaries.

For example, given a wheel like:
```
torch-2.12.0.dev20260316-cp313-cp313t-macosx_11_0_arm64.whl
```

The platform tag claims macosx_11_0_arm64, meaning minos should be 11.0. This script runs otool -l on each installed .dylib and verifies the minos from LC_BUILD_VERSION (or LC_VERSION_MIN_MACOSX) matches 11.0.

Pull Request resolved: pytorch#177609
Approved by: https://github.com/atalman
nklshy-aws pushed a commit to nklshy-aws/pytorch that referenced this pull request Apr 7, 2026
…ch#177609) (pytorch#177903)

Fixes pytorch#177140

# Summary
Adds a check to validate that the macOS wheel platform tag matches the actual minos (minimum OS version) in the Mach-O binaries.

For example, given a wheel like:
```
torch-2.12.0.dev20260316-cp313-cp313t-macosx_11_0_arm64.whl
```

The platform tag claims macosx_11_0_arm64, meaning minos should be 11.0. This script runs otool -l on each installed .dylib and verifies the minos from LC_BUILD_VERSION (or LC_VERSION_MIN_MACOSX) matches 11.0.

Pull Request resolved: pytorch#177609
Approved by: https://github.com/atalman
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…ch#177609) (pytorch#177903)

Fixes pytorch#177140

# Summary
Adds a check to validate that the macOS wheel platform tag matches the actual minos (minimum OS version) in the Mach-O binaries.

For example, given a wheel like:
```
torch-2.12.0.dev20260316-cp313-cp313t-macosx_11_0_arm64.whl
```

The platform tag claims macosx_11_0_arm64, meaning minos should be 11.0. This script runs otool -l on each installed .dylib and verifies the minos from LC_BUILD_VERSION (or LC_VERSION_MIN_MACOSX) matches 11.0.

Pull Request resolved: pytorch#177609
Approved by: https://github.com/atalman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some macOS wheels say macOS 11.0+ but inside there's libomp.dylib with minos 14.0

1 participant