Skip to content

Commit

Permalink
cleanup based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Aug 22, 2022
1 parent 79021e3 commit 4bccffc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,19 @@ def get_platform(self):
osname = platform.system()
mach = platform.machine()
arch, _ = platform.architecture()

if osname == 'Linux':
if mach.startswith('arm'):
if arch == '32bit':
mach = 'arm'
elif arch == '64bit':
mach = 'arm64'
return osname, mach, 'libziti.so'
elif osname == 'Darwin':

if osname == 'Darwin':
return osname, mach, 'libziti.dylib'
elif osname == 'Windows':

if osname == 'Windows':
return osname, mach, 'ziti.dll'

def get_sdk_version(self):
Expand Down

0 comments on commit 4bccffc

Please sign in to comment.