Skip to content

Commit

Permalink
Fix for platform.machine() == aarch64 on Linux
Browse files Browse the repository at this point in the history
$ python -c 'import platform; print(platform.machine())'
aarch64

I'm not sure if in some cases it returns arm64, so I just left that
possibility there.
  • Loading branch information
grdryn committed Dec 19, 2024
1 parent 0149b60 commit 9d19821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osia/installer/downloader/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
def _current_platform():
if platform.system() == "Linux" and platform.machine() == "x86_64":
return "linux", "amd64"
if platform.system() == "Linux" and platform.machine() == "arm64":
if platform.system() == "Linux" and (platform.machine() == "arm64" or platform.machine() == "aarch64"):
return "linux", "arm64"
if platform.system() == "Darwin" and platform.machine() == "arm64":
return "mac", "arm64"
Expand Down

0 comments on commit 9d19821

Please sign in to comment.