Skip to content

Commit

Permalink
Merge pull request #359 from purpleroc/master
Browse files Browse the repository at this point in the history
add support macos
  • Loading branch information
ztxz16 authored Nov 8, 2023
2 parents 96159de + d749e38 commit f97fff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/fastllm_pytools/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import platform
if platform.system() == 'Windows':
fastllm_lib = ctypes.cdll.LoadLibrary(os.path.join(os.path.split(os.path.realpath(__file__))[0], "fastllm_tools.dll"))
elif platform.system() == 'Darwin':
fastllm_lib = ctypes.cdll.LoadLibrary(os.path.join(os.path.split(os.path.realpath(__file__))[0], "libfastllm_tools.dylib"))
else:
fastllm_lib = ctypes.cdll.LoadLibrary(os.path.join(os.path.split(os.path.realpath(__file__))[0], "libfastllm_tools.so"))

Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
packages = ['fastllm_pytools'],

package_data = {
'': ['*.dll', '*.so']
'': ['*.dll', '*.so', '*.dylib']
}
)

0 comments on commit f97fff8

Please sign in to comment.