Skip to content

Commit 91fb055

Browse files
committed
Remove magic import from setup.py
1 parent 5e0cd20 commit 91fb055

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ jobs:
115115
# add compiled libmagic to the build directory (to include in the wheel)
116116
CIBW_BEFORE_BUILD_MACOS: sudo -E bash add_libmagic.sh
117117
CIBW_BEFORE_BUILD_LINUX: bash add_libmagic.sh
118-
CIBW_BEFORE_BUILD_WINDOWS: pip install -U setuptools
119118
# build macos wheels with maximum backwards compatibility (gcc -mmacosx-version-min flag)
120119
MACOSX_DEPLOYMENT_TARGET: ${{ ( endsWith( matrix.only, 'arm64' ) && '11.0' ) || '10.9' }}
121120
# simple smoke test run on each wheel: this is an HLS MP4 video, only recognised in recent versions of libmagic

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
import os
77
import sys
88

9-
# python packages should not install succesfully if libraries are missing
10-
from magic.loader import load_lib
11-
12-
load_lib()._name
13-
149

1510
def read(file_name):
1611
"""Read a text file and return the content as a string."""

0 commit comments

Comments
 (0)