Title: `sysconfig.get_platform` should match the build platform · Issue #162323 · python/cpython · GitHub
Open Graph Title: `sysconfig.get_platform` should match the build platform · Issue #162323 · python/cpython
X Title: `sysconfig.get_platform` should match the build platform · Issue #162323 · python/cpython
Description: Bug report In GH-161870, we noticed that sysconfig.get_platform may not match the build platform when running on a compatible architecture — eg. 32 bit build running on a 64 bit machine. From its documentation: This is used mainly to dis...
Open Graph Description: Bug report In GH-161870, we noticed that sysconfig.get_platform may not match the build platform when running on a compatible architecture — eg. 32 bit build running on a 64 bit machine. From its d...
X Description: Bug report In GH-161870, we noticed that sysconfig.get_platform may not match the build platform when running on a compatible architecture — eg. 32 bit build running on a 64 bit machine. From its d...
Opengraph URL: https://github.com/python/cpython/issues/162323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`sysconfig.get_platform` should match the build platform","articleBody":"### Bug report\n\nIn GH-161870, we noticed that `sysconfig.get_platform` may not match the build platform when running on a compatible architecture — eg. 32 bit build running on a 64 bit machine.\n\nFrom its documentation:\n\n> This is used mainly to distinguish platform-specific build directories and platform-specific built distributions.\n\nTo be able to use the function for this purpose, it must return the build platform. Otherwise, we may end up trying to use a 64 bit wheel on a 32 bit build.\n\n> Typically includes the OS name and version and the architecture (as supplied by [os.uname()](https://docs.python.org/3/library/os.html#os.uname)), although the exact information included depends on the OS; e.g., on Linux, the kernel version isn’t particularly important.\n\nIt does mention `os.uname` specifically as the source, though I think it's written some wiggle room.\n\nIMO, the main issue with changing the behavior is existing code maybe relying on this edge case. If we decide to not change it, then we should provide another way to get the proper build platform.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-162336\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/FFY00","@type":"Person","name":"FFY00"},"datePublished":"2026-11-20T13:12:05Z","url":"https://github.com/python/cpython/issues/162323"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:e1bd11ef-a138-a52a-7027-12165e5a7601 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D90:6B7DC:1CCE7:243FA:6B01E944 |
| html-safe-nonce | fc61f955946e47717493910e6106e7b6159844b7d8822f1b90fce9d5f687e04d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDkwOjZCN0RDOjFDQ0U3OjI0M0ZBOjZCMDFFOTQ0IiwidmlzaXRvcl9pZCI6IjIyMjM2ODQ1NDYyMjE3NzYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2883ef6bc79d82eba35ed229368c98ba6ec685f6e025cb7db63d49b761a1cb72 |
| hovercard-subject-tag | issue:6512100442 |
| 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/162323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b702b3f3ae677104ee94f9f8234277b14365732f7396ade42274751b1484d6e4/python/cpython/issues/162323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b702b3f3ae677104ee94f9f8234277b14365732f7396ade42274751b1484d6e4/python/cpython/issues/162323 |
| og:image:alt | Bug report In GH-161870, we noticed that sysconfig.get_platform may not match the build platform when running on a compatible architecture — eg. 32 bit build running on a 64 bit machine. From its d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FFY00 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width