Title: sysconfig.get_platform() could return wrong value because sys.version is truncated · Issue #145410 · python/cpython · GitHub
Open Graph Title: sysconfig.get_platform() could return wrong value because sys.version is truncated · Issue #145410 · python/cpython
X Title: sysconfig.get_platform() could return wrong value because sys.version is truncated · Issue #145410 · python/cpython
Description: Bug report Bug description: On Windows, sysconfig.get_platform() checks for the string amd64 (for 64 intel) in sys.version. This is the value of sys.version for python 3.14.3 (64 bit) compiled with clang 22.1.0 >>> sys.version '3.14.3 (m...
Open Graph Description: Bug report Bug description: On Windows, sysconfig.get_platform() checks for the string amd64 (for 64 intel) in sys.version. This is the value of sys.version for python 3.14.3 (64 bit) compiled with...
X Description: Bug report Bug description: On Windows, sysconfig.get_platform() checks for the string amd64 (for 64 intel) in sys.version. This is the value of sys.version for python 3.14.3 (64 bit) compiled with...
Opengraph URL: https://github.com/python/cpython/issues/145410
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sysconfig.get_platform() could return wrong value because sys.version is truncated","articleBody":"# Bug report\n\n### Bug description:\n\nOn Windows, `sysconfig.get_platform()` checks for the string `amd64` (for 64 intel) in `sys.version`.\n\nThis is the value of `sys.version` for python 3.14.3 (64 bit) compiled with clang 22.1.0\n\n```pycon\n\u003e\u003e\u003e sys.version\n'3.14.3 (main, Mar 2 2026, 14:42:29) [Clang 22.1.0 (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b0'\n\u003e\u003e\u003e sysconfig.get_platform()\n'win32'\n\u003e\u003e\u003e import platform\n\u003e\u003e\u003e platform.architecture()[0]\n'64bit'\n```\n\nAs visible, there is no `amd64` in `sys.version`, because it is truncated. This causes problem when installing native package using pip because `cp314-cp314-amd64` is not in the list of supported tags. Instead, the supported tags list become\n\n```\nCompatible tags: 48\n cp314-cp314-win32\n cp314-abi3-win32\n cp314-none-win32\n cp313-abi3-win32\n cp312-abi3-win32\n cp311-abi3-win32\n cp310-abi3-win32\n cp39-abi3-win32\n cp38-abi3-win32\n cp37-abi3-win32\n cp36-abi3-win32\n cp35-abi3-win32\n cp34-abi3-win32\n cp33-abi3-win32\n cp32-abi3-win32\n (truncated)\n```\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nWindows\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146145\n* gh-146148\n* gh-146146\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/char101","@type":"Person","name":"char101"},"datePublished":"2026-03-02T09:45:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/145410/cpython/issues/145410"}
| 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:b42fe9c2-5dec-dfcf-668e-c3f21ef9ab40 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA0C:2CFC95:256CFDF:32F95A3:6A53A578 |
| html-safe-nonce | 26d74a836dd9be297d17c02a60ffaaaecf0f550c6268ff3ab064a2ad232bde78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTBDOjJDRkM5NToyNTZDRkRGOjMyRjk1QTM6NkE1M0E1NzgiLCJ2aXNpdG9yX2lkIjoiMjM0MzM4MDIwMDUzMDg3OTg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86f7d5954657b108dc6675f0c021d15558f6f89a995fb9b405d8eb662c4d741e |
| hovercard-subject-tag | issue:4010290435 |
| 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/145410/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04be33e82a01bf3b786aa639fe3e00437e8f8cdf0e67944f854ca50aaa470634/python/cpython/issues/145410 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04be33e82a01bf3b786aa639fe3e00437e8f8cdf0e67944f854ca50aaa470634/python/cpython/issues/145410 |
| og:image:alt | Bug report Bug description: On Windows, sysconfig.get_platform() checks for the string amd64 (for 64 intel) in sys.version. This is the value of sys.version for python 3.14.3 (64 bit) compiled with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | char101 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width