Title: Unsupported Wheel on x86_64 Intel Chip Mac running OSX 13.4 · Issue #160 · pybind/python_example · GitHub
Open Graph Title: Unsupported Wheel on x86_64 Intel Chip Mac running OSX 13.4 · Issue #160 · pybind/python_example
X Title: Unsupported Wheel on x86_64 Intel Chip Mac running OSX 13.4 · Issue #160 · pybind/python_example
Description: I have a working CMakeLists.txt file which generates both an executable (racplusplus_exe) and a static library (racplusplus.cpython-311-darwin.so) wrapped with pybind. The executable runs perfectly, and I can import the static library in...
Open Graph Description: I have a working CMakeLists.txt file which generates both an executable (racplusplus_exe) and a static library (racplusplus.cpython-311-darwin.so) wrapped with pybind. The executable runs perfectly...
X Description: I have a working CMakeLists.txt file which generates both an executable (racplusplus_exe) and a static library (racplusplus.cpython-311-darwin.so) wrapped with pybind. The executable runs perfectly...
Opengraph URL: https://github.com/pybind/python_example/issues/160
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unsupported Wheel on x86_64 Intel Chip Mac running OSX 13.4","articleBody":"I have a working CMakeLists.txt file which generates both an executable (`racplusplus_exe`) and a static library (`racplusplus.cpython-311-darwin.so`) wrapped with pybind. The executable runs perfectly, and I can import the static library in python and run functions successfully. \r\n\r\nWhen I use setup.py to `python3 setup.py bdist_wheel` I get a wheel built in `dist/racplusplus-0.9-cp311-cp311-macosx_13_0_x86_64.whl`. But whenever I try to `pip install` the wheel I get the error \"ERROR: racplusplus-0.9-cp311-cp311-macosx_13_0_x86_64.whl is not a supported wheel on this platform.\"\r\n\r\nDuring the build output I see multiple lines with mention macosx 10.9 for some reason. ie: \"installing to build/bdist.macosx-10.9-x86_64/wheel\". So I wonder if somehow the wheel is being built for the wrong macOSX, even though the final wheel name has the correct OS?\r\n\r\nI have tried manually setting \r\n\r\n```python os.environ[\"ARCHFLAGS\"] = \"-arch x86_64 -mmacosx-version-min=13.0\"```\r\n\r\nand also manually setting\r\n\r\n```python os.environ['MACOSX_DEPLOYMENT_TARGET'] = '13.0'```\r\n\r\nin \"setup.py\", but neither of these environment variables seems to be respected.\r\n\r\nAny ideas what's going on? Not sure this is inherently an issue with setup.py for newer OS's or if I'm not understanding how to specify the wheel architecture correctly. \r\n\r\n","author":{"url":"https://github.com/danielfrees","@type":"Person","name":"danielfrees"},"datePublished":"2023-06-02T00:24:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/160/python_example/issues/160"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a4fb937-aa7d-999d-0637-fd3cc139394b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E742:180C0D:BFA9A8:F7B21E:69750E85 |
| html-safe-nonce | 4ad8bbcd8f310f4c66eca5e434f9d5ee5ba9ab8ea76bd5ca93d63df1ba87be13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzQyOjE4MEMwRDpCRkE5QTg6RjdCMjFFOjY5NzUwRTg1IiwidmlzaXRvcl9pZCI6IjIyMjcxOTcyNTQ5NDA1NjEwMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eca57b69dd6a8c863983f9d7a1ab1a7685182a1d15b20bc7e7cc5d5abdd37f88 |
| hovercard-subject-tag | issue:1737275889 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pybind/python_example/160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2d996dddccb539d2c23cc27d68d608e5eb21e758f74bef8eb85059145d58f19/pybind/python_example/issues/160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2d996dddccb539d2c23cc27d68d608e5eb21e758f74bef8eb85059145d58f19/pybind/python_example/issues/160 |
| og:image:alt | I have a working CMakeLists.txt file which generates both an executable (racplusplus_exe) and a static library (racplusplus.cpython-311-darwin.so) wrapped with pybind. The executable runs perfectly... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danielfrees |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/pybind/python_example git https://github.com/pybind/python_example.git |
| octolytics-dimension-user_id | 17565521 |
| octolytics-dimension-user_login | pybind |
| octolytics-dimension-repository_id | 50649061 |
| octolytics-dimension-repository_nwo | pybind/python_example |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50649061 |
| octolytics-dimension-repository_network_root_nwo | pybind/python_example |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width