Skip to content

Commit

Permalink
Fix the library search order in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
avalentino committed May 20, 2023
1 parent 69f933d commit 1fb8168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -457,9 +457,9 @@ def find_directories(self, location, use_pkgconfig=False, hook=None):
directories = [None, None, None] # headers, libraries, runtime
for idx, (name, find_path, default_dirs) in enumerate(dirdata):
path = find_path(
pkgconfig_dirs[idx]
locations
or pkgconfig_dirs[idx]
or hook_dirs[idx]
or locations
or default_dirs
)
if path:
Expand Down

0 comments on commit 1fb8168

Please sign in to comment.