Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matt200-ok committed Dec 18, 2024
1 parent d57b9b8 commit 4fce19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions binding/python/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,8 @@ def pv_library_path(relative: str) -> str:
relative,
'lib/raspberry-pi/%s/libpv_picollm.so' % _PV_MACHINE)
elif _PV_SYSTEM == 'Windows':
print('----' + _PV_MACHINE + '----')
if _PV_MACHINE.lower() == 'amd64':
return os.path.join(os.path.dirname(__file__), relative, 'lib/windows/amd64/libpv_picollm.dll')
elif _PV_MACHINE.lower() == 'arm64':
return os.path.join(os.path.dirname(__file__), relative, 'lib/windows/arm64/libpv_picollm.dll')
library_file = os.path.join(os.path.dirname(__file__), relative, 'lib/windows/amd64/libpv_picollm.dll')
return library_file

raise NotImplementedError('Unsupported platform.')

Expand Down
1 change: 0 additions & 1 deletion binding/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
include picollm/lib/mac/x86_64/*.dylib
include picollm/lib/raspberry-pi/**/*.so
include picollm/lib/windows/amd64/*.dll
include picollm/lib/windows/arm64/*.dll
"""

with open(os.path.join(os.path.dirname(__file__), 'MANIFEST.in'), 'w') as f:
Expand Down

0 comments on commit 4fce19f

Please sign in to comment.