delocate: Tool `delocate-wheel` alters tag in wheel name to seemingly invalid tag/number
Describe the bug
Tool delocate-wheel alters tag in wheel name to seemingly invalid tag/number
We are using GitHub-runners to generate som large macOS wheels for repository Carolina
To Reproduce
The wheel before we use delocate:
Created wheel for carolina: filename=carolina-1.0.16.dev3+g42cf9bc-cp38-cp38-macosx_11_0_x86_64.whl size=32980 sha256=f719c488eded81a29c5685e636b6b290f516d8fab9cbfde7b626041e49240904
...
Running delocate-wheel:
delocate-wheel -w /tmp/carolina_dist -v $unfixed_wheel_path
...
...
-rw-r--r-- 1 runner wheel 17M Apr 5 13:42 carolina-1.0.16.dev3+g42cf9bc-cp38-cp38-macosx_13_6_x86_64.whl
I see that there are dependencies that would indicate this to be set to 13_x, but as far as I can tell the wheel won’t work when 13_6 is used. If I rename the file I can install it locally. The same is true for 11_0.
Compatible tags: 1835
cp38-cp38-macosx_13_0_x86_64
cp38-cp38-macosx_13_0_intel
cp38-cp38-macosx_13_0_fat64
cp38-cp38-macosx_13_0_fat32
cp38-cp38-macosx_13_0_universal2
cp38-cp38-macosx_13_0_universal
...
Wheels used/generated
# generated using version 0.10.7 -- works as intended
carolina-1.0.16.dev2+g9c153fd-cp311-cp311-macosx_11_0_x86_64.whl
# generated using version 0.11.0 -- works when renaming to `13_0` (or `11_0`)
carolina-1.0.16.dev3+g42cf9bc-cp311-cp311-macosx_13_6_x86_64.whl
carolina-1.0.16.dev3+g42cf9bc-cp311-cp311-macosx_13_6_x86_64.whl.tar.gz
carolina-1.0.16.dev2+g9c153fd-cp311-cp311-macosx_11_0_x86_64.whl.tar.gz
Platform (please complete the following information):
- OS versions macOS 13 and macOS 14
- Delocate version: 0.11.0
Additional context Works with previous release, 0.10.7
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27 (1 by maintainers)
Commits related to this issue
- pypi: Pin delocate package to 0.10.x The delocate package used to construct the usd-core wheel on MacOS was recently updated to 0.11.0. This version introduced new behavior that modified the name of ... — committed to PixarAnimationStudios/OpenUSD by sunyab 3 years ago
- specify delocate==10.7 - until https://github.com/matthew-brett/delocate/issues/214 is fixed — committed to themachinethatgoesping/themachinethatgoesping by peter-urban 2 years ago
- specify delocate==10.7 - until https://github.com/matthew-brett/delocate/issues/214 is fixed — committed to themachinethatgoesping/themachinethatgoesping by peter-urban 2 years ago
- specify delocate==0.10 - until https://github.com/matthew-brett/delocate/issues/214 is fixed — committed to themachinethatgoesping/themachinethatgoesping by peter-urban 2 years ago
I’m not a native Mac user. I need to know more about the nature of the minor version in macOS 11+ to have an opinion on it. If it’s simply a minor OS update for that release then it doesn’t seem to be as big of a deal for casual deployment, tell devs to keep their OS up-to-date. On more stable systems where it does matter, I trust devs to be aware of what
MACOSX_DEPLOYMENT_TARGETmeans without needing a warning about its repercussions.The upstream packagers have decided that the platform tags for macOS refer to each macOS release rather than the actual version numbers. I’d like to include exact versions in the wheel metadata whenever they allow it.
Notes and advice on how one should use
MACOSX_DEPLOYMENT_TARGETand about version compatibility edge cases would be good to add to the Delocate readme.It turns out it was cmake that decided set the min osx version, I worked around it with:
https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html
How does one affect the
MACOSX_DEPLOYMENT_TARGETorMacOS.versionof a program built by brew? I’m not experienced with it and I don’t have the platform to mess around with it.