Skip to content

Commit

Permalink
add i386 architecture support
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbsog0 committed Feb 28, 2025
1 parent c2a5d97 commit 9d4f565
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Python package
on: [ push, pull_request ]

env:
A2L_GRPC_VERSION: v0.1.19
A2L_GRPC_VERSION: v0.1.20

jobs:
generate-grpc-sources:
Expand Down
5 changes: 4 additions & 1 deletion pya2l/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def get_dll_architecture() -> str:
def get_linux_architecture() -> str:
machine = platform.machine()
if machine == 'x86_64':
return 'amd64'
if struct.calcsize("P") == 8:
return 'amd64'
else:
return 'i386'
elif machine == 'aarch64':
return 'arm64'
elif machine.startswith('arm'):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pya2l
version = 0.1.7
version = 0.1.8
author = Guillaume Sottas
author_email = [email protected]
description = utility for a2l files
Expand Down

0 comments on commit 9d4f565

Please sign in to comment.