Skip to content

Commit

Permalink
Fix intel macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed May 28, 2024
1 parent 2a59412 commit bcbed3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install cibuildwheel==2.18.1 # sync version with pypa/cibuildwheel below
- run: pip install cibuildwheel==2.17.0 # sync version with pypa/cibuildwheel below
- id: set-matrix
env:
# only mention one (trivial) python version, as py2.py3 wheels only need to be build once per arch
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3

- uses: pypa/cibuildwheel@v2.18.1 # sync version with pip install cibuildwheel above
- uses: pypa/cibuildwheel@v2.17.0 # sync version with pip install cibuildwheel above
timeout-minutes: 10
with:
only: ${{ matrix.only }}
Expand Down
7 changes: 7 additions & 0 deletions add_libmagic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ install_source() {
# install from source
# https://www.darwinsys.com/file/
# https://github.com/file/file/blob/FILE5_45/INSTALL#L51
if [ -n "$(which brew)" ] && [ "$(uname -m)" == "x86_64" ]; then
# libzstd and liblzma need to be rebuilt from source on intel macos
# so they respect MACOSX_DEPLOYMENT_TARGET=10.9 when they get copied into the wheel
brew upgrade cmake &&
brew pin cmake &&
brew reinstall --build-from-source zstd xz
fi
(
version="file-5.45" &&
tmpfile="$(mktemp)" &&
Expand Down

0 comments on commit bcbed3d

Please sign in to comment.