Skip to content

Commit c0c6aa4

Browse files
committed
Add missing break statement
1 parent afd454f commit c0c6aa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ def build_extension(self, ext):
4848
# _needs_stub is apparently not set elsewhere. It is not needed for
4949
# a functional isal extension.
5050
setattr(cythonized_ext, "_needs_stub", False)
51+
52+
# Check for isa-l include directories. This is useful when installing
53+
# in a conda environment.
5154
possible_prefixes = [sys.exec_prefix, sys.base_exec_prefix]
5255
for prefix in possible_prefixes:
5356
if os.path.exists(os.path.join(prefix, "include", "isa-l")):
5457
cythonized_ext.include_dirs = [
5558
os.path.join(prefix, "include")]
59+
break # Only one include directory is needed.
5660
cythonized_ext.libraries = ["isal"]
5761
try: # First try to link dynamically
5862
super().build_extension(cythonized_ext)

0 commit comments

Comments
 (0)