Skip to content

Commit b3f3225

Browse files
authored
Update lib path on macOS
Fix from carloscdias#9 Basically on macOS we were trying to load the wrong file 😊
1 parent 0744238 commit b3f3225

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _load_shared_library(lib_base_name: str):
1919
if sys.platform.startswith("linux"):
2020
lib_ext = ".so"
2121
elif sys.platform == "darwin":
22-
lib_ext = ".so"
22+
lib_ext = ".dylib"
2323
elif sys.platform == "win32":
2424
lib_ext = ".dll"
2525
else:
@@ -219,7 +219,7 @@ def format_function(self, node):
219219
description="A Python wrapper for whisper.cpp",
220220
long_description=long_description,
221221
long_description_content_type="text/markdown",
222-
version="0.2.0",
222+
version="0.2.1",
223223
author="Carlos Cardoso Dias",
224224
author_email="carlosdias.dev@gmail.com",
225225
license="MIT",
@@ -248,5 +248,3 @@ def format_function(self, node):
248248
c_header_file = "vendor/whisper.cpp/whisper.h"
249249
file_gen = WhisperCppFileGen(c_header_file)
250250
file_gen.output(dest_dir / "whisper_cpp.py")
251-
252-

0 commit comments

Comments
 (0)