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 49784f0 commit 019a645Copy full SHA for 019a645
setup.py
@@ -54,9 +54,10 @@ def build_extension(self, ext):
54
cythonized_ext.include_dirs = [
55
os.path.join(prefix, "include")]
56
cythonized_ext.libraries = ["isal"]
57
- try:
+ try: # First try to link dynamically
58
super().build_extension(cythonized_ext)
59
- except CompileError: # Dynamic linking failed
+ except CompileError:
60
+ # Dynamic linking failed, build ISA-L and link statically.
61
cythonized_ext.libraries = [] # Make sure libraries are empty
62
isa_l_prefix_dir = build_isa_l()
63
cythonized_ext.include_dirs = [os.path.join(isa_l_prefix_dir,
0 commit comments