We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab2a69c commit 718c73dCopy full SHA for 718c73d
.github/workflows/ci.yml
@@ -22,6 +22,10 @@ jobs:
22
- run: pip install --upgrade pip
23
- run: pip install --upgrade pytest
24
- run: pip install --editable .
25
+ - if: runner.os == 'Linux'
26
+ run: |
27
+ sudo apt-get update -qq
28
+ sudo apt-get install --yes libmagic1
29
- if: runner.os == 'macOS'
30
run: brew install libmagic
31
- if: runner.os == 'Windows'
magic/loader.py
@@ -12,7 +12,8 @@ def _lib_candidates_linux():
12
13
This is necessary because alpine is bad
14
"""
15
- yield "libmagic.so.1"
+ for path in ("libmagic.so", "libmagic.so.1"):
16
+ yield find_library(path)
17
18
19
def _lib_candidates_macos():
0 commit comments