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 77970d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
with:
path: winbuild\build
key:
${{ hashFiles('winbuild\build_prepare.py') }}-${{ hashFiles('.github\workflows\test-windows.yml') }}-${{ env.pythonLocation }}-${{ steps.install.outputs.vs }}
z-${{ hashFiles('winbuild\build_prepare.py') }}-${{ hashFiles('.github\workflows\test-windows.yml') }}-${{ env.pythonLocation }}-${{ steps.install.outputs.vs }}

- name: Prepare build
if: steps.build-cache.outputs.cache-hit != 'true'
Expand Down
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 77970d0

Please sign in to comment.