We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617405f commit 0d1f167Copy full SHA for 0d1f167
python/setup.py
@@ -51,6 +51,14 @@ def _maybe_add_library_root(lib_name):
51
elif sys.platform == "win32":
52
cflags = ["/std:c++17", "/d2FH4-"]
53
package_data["ctranslate2"] = ["*.dll"]
54
+elif sys.platform == "linux":
55
+ package_data["ctranslate2"] = [
56
+ "../libctranslate2.so",
57
+ "../libctranslate2.so.4",
58
+ "../libctranslate2.so.4.6.0"
59
+ ]
60
+ cflags.append("-fPIC")
61
+ ldflags.append("-Wl,-rpath,$ORIGIN")
62
63
ctranslate2_module = Extension(
64
"ctranslate2._ext",
0 commit comments