Fix broken pip installer by forcing it to detect macOS 11 as 11.0
and not 10.16
#4359
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.
Description
This was a really weird bug to investigate!! General background info references:
Specific to
onnxruntime
:miniconda
environment,pip
detects the macOS version number as10.16
, causing the new 1.17.0 onnxruntime wheels to not be found microsoft/onnxruntime#19371The above issue has only become relevant for SCT because one of its dependencies,
onnxruntime
switched to wheels that specifymacosx_11_0
in the wheel's name instead of the previousmacosx_10_15
. So, we need the compatibility fix to install the newestonnxruntime
wheels, at least untilpip
fixes this upstream by vendoring a newer version ofpackaging
:packaging
to 22.0+ pypa/pip#11715Linked issues
Fixes #4352.