Skip to content

Commit

Permalink
Fix blosc2_find_directories_hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Valentino authored and Antonio Valentino committed May 16, 2023
1 parent aa7e83b commit eaf9ad4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,19 @@ def get_blosc2_directories():

def blosc2_find_directories_hook():
print("* Run 'blosc2_find_directories_hook'")
header_dirs = library_dirs = None
header_dirs = library_dirs = runtime_dirs = None
if os.environ.get("PYTABLES_NO_BLOSC2_WHEEL", None) is None:
try:
header_dirs, library_dirs, runtime_dirs = get_blosc2_directories()
except OSError:
print("* Unable to find blosc2 wheel.")

if header_dirs is not None:
header_dirs = [header_dirs]
if library_dirs is not None:
library_dirs = [library_dirs]
if runtime_dirs is not None:
runtime_dirs = [runtime_dirs]
else:
if header_dirs is not None:
header_dirs = [header_dirs]
if library_dirs is not None:
library_dirs = [library_dirs]
if runtime_dirs is not None:
runtime_dirs = [runtime_dirs]

return header_dirs, library_dirs, runtime_dirs

Expand Down

0 comments on commit eaf9ad4

Please sign in to comment.