Title: macOS wheels get wrongly tagged as universal2 · Issue #586 · python-ldap/python-ldap · GitHub
Open Graph Title: macOS wheels get wrongly tagged as universal2 · Issue #586 · python-ldap/python-ldap
X Title: macOS wheels get wrongly tagged as universal2 · Issue #586 · python-ldap/python-ldap
Description: On macOS when building a wheel of python-ldap, I get one that carries the universal2 tag, which marks it as working on both x86 and ARM: python_ldap-3.4.4-cp313-cp313-macosx_10_13_universal2.whl Unfortunately, it is not, and when a packa...
Open Graph Description: On macOS when building a wheel of python-ldap, I get one that carries the universal2 tag, which marks it as working on both x86 and ARM: python_ldap-3.4.4-cp313-cp313-macosx_10_13_universal2.whl Un...
X Description: On macOS when building a wheel of python-ldap, I get one that carries the universal2 tag, which marks it as working on both x86 and ARM: python_ldap-3.4.4-cp313-cp313-macosx_10_13_universal2.whl Un...
Opengraph URL: https://github.com/python-ldap/python-ldap/issues/586
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"macOS wheels get wrongly tagged as universal2","articleBody":"On macOS when building a wheel of python-ldap, I get one that carries the universal2 tag, which marks it as working on both x86 and ARM: `python_ldap-3.4.4-cp313-cp313-macosx_10_13_universal2.whl`\n\nUnfortunately, it is not, and when a package installer caches the built wheel, it poisons its own cache and installing it on the wrong architecture creates a rather opaque error:\n\n```\n.venv/lib/python3.13/site-packages/ldap/__init__.py:34: in \u003cmodule\u003e\n import _ldap\nE ImportError: dynamic module does not define module export function (PyInit__ldap)\n```\n\nThis means I have to clear the cache for python-ldap whenever I switch projects that use a different architecture (e.g., if I want to run `uv lock --upgrade` on both).\n\nThe uv folks [told me](https://github.com/astral-sh/uv/issues/13984) this is a packaging problem that has to be fixed within the project itself.\n\n---\n\nI have attached the build log, because it's too long for inline copy-paste: [build.log](https://github.com/user-attachments/files/20723157/build.log)\n\nNote the linker warnings: `ld: warning: ignoring file 'build/temp.macosx-10.13-universal2-cpython-313/Modules/common.o': found architecture 'arm64', required architecture 'x86_64'`\n\nI ran the build with `uvx --from build pyproject-build`, i.e. the official PyPA builder.","author":{"url":"https://github.com/hynek","@type":"Person","name":"hynek"},"datePublished":"2025-06-13T08:57:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/586/python-ldap/issues/586"}
| 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:42c1ad58-be5a-2e78-972e-188e871a30ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB06:243FA0:705D2CE:910B581:69758984 |
| html-safe-nonce | 0d9f64aff0168f3e5a5f36dbb9b1997c8db183090c2503d5f2223110c19d3434 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjA2OjI0M0ZBMDo3MDVEMkNFOjkxMEI1ODE6Njk3NTg5ODQiLCJ2aXNpdG9yX2lkIjoiNjg0NDM1MTAxNTg0Mzg5MTU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2bef1b1fa2d8475c71c70552d785a6d6e0882ff4033c346397ebdbe35a2fccb9 |
| hovercard-subject-tag | issue:3142807359 |
| 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/python-ldap/python-ldap/586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e25f02f33cbdca140ebe8ad0591856b36a26083ecfd3c34542c71e1b582a872/python-ldap/python-ldap/issues/586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e25f02f33cbdca140ebe8ad0591856b36a26083ecfd3c34542c71e1b582a872/python-ldap/python-ldap/issues/586 |
| og:image:alt | On macOS when building a wheel of python-ldap, I get one that carries the universal2 tag, which marks it as working on both x86 and ARM: python_ldap-3.4.4-cp313-cp313-macosx_10_13_universal2.whl Un... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hynek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git |
| octolytics-dimension-user_id | 33895877 |
| octolytics-dimension-user_login | python-ldap |
| octolytics-dimension-repository_id | 111794776 |
| octolytics-dimension-repository_nwo | python-ldap/python-ldap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111794776 |
| octolytics-dimension-repository_network_root_nwo | python-ldap/python-ldap |
| 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