Skip to content

Commit

Permalink
attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Sep 25, 2023
1 parent c8bb061 commit 601cce9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ def _find_include_file(self, include):


def _find_shared_library_file(self, library):
for dir_ in self.compiler.library_dirs:
if sys.platform == "win32":
dirs = (os.environ.get("PATH") or "").split(os.pathsep)
else:
dirs = self.compiler.library_dirs
for dir_ in dirs:
libfile = os.path.join(
dir_, self.compiler.library_filename(library, lib_type="shared")
)
Expand Down

0 comments on commit 601cce9

Please sign in to comment.