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 dc6c082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osia/installer/downloader/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
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 dc6c082

Please sign in to comment.