File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,14 @@ def build_extension(self, ext):
59
59
# installing in a conda environment.
60
60
possible_prefixes = [sys .exec_prefix , sys .base_exec_prefix ]
61
61
for prefix in possible_prefixes :
62
- if os .path .exists (os .path .join (prefix , "include" , "isa-l" )):
63
- ext .include_dirs = [
64
- os .path .join (prefix , "include" )]
65
- break # Only one include directory is needed.
62
+ if Path (prefix , "include" , "isa-l" ).exists ():
63
+ ext .include_dirs = [os .path .join (prefix , "include" )]
64
+ break # Only one include directory is needed.
65
+ # On windows include is in Library apparently
66
+ elif Path (prefix , "Library" , "include" , "isa-l" ).exists ():
67
+ ext .include_dirs = [os .path .join (prefix , "Library" ,
68
+ "include" )]
69
+ break
66
70
ext .libraries = ["isal" ]
67
71
else :
68
72
isa_l_prefix_dir = build_isa_l ()
You can’t perform that action at this time.
0 commit comments