Skip to content

Commit 019a645

Browse files
committed
Add some comments
1 parent 49784f0 commit 019a645

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ def build_extension(self, ext):
5454
cythonized_ext.include_dirs = [
5555
os.path.join(prefix, "include")]
5656
cythonized_ext.libraries = ["isal"]
57-
try:
57+
try: # First try to link dynamically
5858
super().build_extension(cythonized_ext)
59-
except CompileError: # Dynamic linking failed
59+
except CompileError:
60+
# Dynamic linking failed, build ISA-L and link statically.
6061
cythonized_ext.libraries = [] # Make sure libraries are empty
6162
isa_l_prefix_dir = build_isa_l()
6263
cythonized_ext.include_dirs = [os.path.join(isa_l_prefix_dir,

0 commit comments

Comments
 (0)