| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
On Windows, sysconfig.get_platform() checks for 'amd64' in sys.version to detect 64-bit builds. However, sys.version can be truncated (e.g., ~100 chars on clang builds), causing 'amd64' to be missing and returning 'win32' incorrectly. This fix adds sys.maxsize > 2**32 as a fallback check, which is reliable even when sys.version is truncated. Also reorders arm64 check before arm32 for proper precedence. Fixes: python#145410
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
|
This was resolved by b9d4318. Also I see this was "Submitted by automated agent." |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Bug Fix
On Windows, sysconfig.get_platform() checks for the string 'amd64' in sys.version to detect 64-bit builds. However, sys.version can be truncated (e.g., ~100 characters on clang builds), causing 'amd64' to be missing and returning 'win32' incorrectly.
This causes problems when installing native packages via pip because cp314-cp314-amd64 is not in the list of supported tags.
The Fix
This PR adds sys.maxsize > 2**32 as a fallback check, which is reliable even when sys.version is truncated. It also reorders the arm64 check before arm32 for proper precedence.
Before:
After:
Fixes: #145410
Submitted by automated agent