Skip to content

Commit 09000e2

Browse files
committed
Add PATH hack
1 parent f905a0e commit 09000e2

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/wheels.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ jobs:
113113
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libstdc++-6.dll" "magic"
114114
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libcharset-1.dll" "magic"
115115
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libiconv-2.dll" "magic"
116-
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libwinpthread-1.dll" "magic"
117116
118117
- uses: pypa/cibuildwheel@v2.17.0 # sync version with pip install cibuildwheel above
119118
timeout-minutes: 10

magic/loader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def _lib_candidates():
8989

9090

9191
def load_lib():
92+
os.environ['PATH'] = here + os.pathsep + os.environ['PATH'] # for DLLs in site-packages
9293
exc = []
9394
for lib in _lib_candidates():
9495
# find_library returns None when lib not found

0 commit comments

Comments
 (0)