Title: Clean up `_ctypes`/`libffi` build, particularly on macOS · Issue #100540 · python/cpython · GitHub
Open Graph Title: Clean up `_ctypes`/`libffi` build, particularly on macOS · Issue #100540 · python/cpython
X Title: Clean up `_ctypes`/`libffi` build, particularly on macOS · Issue #100540 · python/cpython
Description: bpo-28491/gh-72677 was closed after bpo-41100/gh-85272, but Modules/_ctypes/libffi_osx wasn't actually removed, just made inaccessible to any build. In the course of figuring out whether it is in fact unused now, I also stumbled across M...
Open Graph Description: bpo-28491/gh-72677 was closed after bpo-41100/gh-85272, but Modules/_ctypes/libffi_osx wasn't actually removed, just made inaccessible to any build. In the course of figuring out whether it is in f...
X Description: bpo-28491/gh-72677 was closed after bpo-41100/gh-85272, but Modules/_ctypes/libffi_osx wasn't actually removed, just made inaccessible to any build. In the course of figuring out whether it is ...
Opengraph URL: https://github.com/python/cpython/issues/100540
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clean up `_ctypes`/`libffi` build, particularly on macOS","articleBody":"bpo-28491/gh-72677 was closed after bpo-41100/gh-85272, but [`Modules/_ctypes/libffi_osx`](https://github.com/python/cpython/tree/3.11/Modules/_ctypes/libffi_osx) wasn't actually removed, just made inaccessible to any build. In the course of figuring out whether it is in fact unused now, I also stumbled across [`Modules/_ctypes/darwin`](https://github.com/python/cpython/tree/3.11/Modules/_ctypes/darwin), which also appears to be a `dlfcn.h` shim for Mac OS X 10.2 and earlier, and as far as I can tell has been unused for years. And, of course, with no local copy of `libffi` on any platform anymore, there's no need for `--with-system-ffi` to stick around, which also pointed me towards a needless `-DMACOSX` in the macOS build of `_ctypes`. I'll be attaching a series of PRs for 3.12 (only) removing all of these, each of which can be done independently.\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-100541\r\n* gh-100542\r\n* gh-100543\r\n* gh-100544\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/zware","@type":"Person","name":"zware"},"datePublished":"2022-12-26T20:49:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/100540/cpython/issues/100540"}
| 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:d23c1650-7724-e292-8761-92c4ea879a9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B288:A6D52:50F2C1E:7296B9E:6A4FE88C |
| html-safe-nonce | 9dcdad2564fff72478997061d41832f629f01f2def4f1437e3f460bab9a3fae9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjg4OkE2RDUyOjUwRjJDMUU6NzI5NkI5RTo2QTRGRTg4QyIsInZpc2l0b3JfaWQiOiI1OTY4NDgyNDcxMjM4NDI4ODEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d8179c05fc8cc7be599b2951ce32be9d3fa47edbede65c81c19da856f4c1e5e8 |
| hovercard-subject-tag | issue:1511233387 |
| 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/cpython/100540/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76cc79d896fd667230c84d579482ec785dc730ecdc2e1882b045b0eb02478799/python/cpython/issues/100540 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76cc79d896fd667230c84d579482ec785dc730ecdc2e1882b045b0eb02478799/python/cpython/issues/100540 |
| og:image:alt | bpo-28491/gh-72677 was closed after bpo-41100/gh-85272, but Modules/_ctypes/libffi_osx wasn't actually removed, just made inaccessible to any build. In the course of figuring out whether it is in f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zware |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 142593e66413bbae27fd485859993597d5a3b104 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width