Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(internal): use different 32bit detection method #477

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/finch/_base_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import sys
import json
import time
import uuid
Expand Down Expand Up @@ -2011,7 +2012,6 @@ def get_python_version() -> str:

def get_architecture() -> Arch:
try:
python_bitness, _ = platform.architecture()
machine = platform.machine().lower()
except Exception:
return "unknown"
Expand All @@ -2027,7 +2027,7 @@ def get_architecture() -> Arch:
return "x64"

# TODO: untested
if python_bitness == "32bit":
if sys.maxsize <= 2**32:
return "x32"

if machine:
Expand Down