Repository navigation
[macOS wheel] Add wheel platform tag vs dylib minos validation (#177609) - #177903
Merged
Merged
Conversation
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
🔗 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 FailuresAs of commit f5edb53 with merge base 14b40e9 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
Author
|
all check passed, merge |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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