Skip to content

Commit

Permalink
Support for using macos static libraries (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte authored May 29, 2022
1 parent 2b47cdf commit 0220a75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
build_wheel_unix:
strategy:
matrix:
os: [ubuntu-latest]
os: [macos-latest, ubuntu-latest]
name: Build [${{ matrix.os }}] using cibuildwheel
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -62,7 +62,9 @@ jobs:
name: cx-freeze-wheelhouse
path: wheelhouse
publish:
needs: windows
needs:
- build_wheel_windows
- build_wheel_unix
runs-on: ubuntu-latest
name: Publish package to PyPI
steps:
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ build-verbosity = "1"
before-build = "(cd /opt/_internal && tar -xvf static-libs-for-embedding-only.tar.xz)"
build = "cp3*-manylinux_x86_64"
repair-wheel-command = "auditwheel repair -L /bases/lib -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
build = "cp3*-macosx_*"
archs = "x86_64 universal2 arm64"
skip = "cp38-macosx_universal2 cp38-macosx_arm64"
dependency-versions = "latest"
repair-wheel-command = """
delocate-listdeps {wheel} &&
delocate-wheel --require-archs {delocate_archs} -L bases/lib -w {dest_dir} {wheel}
"""

0 comments on commit 0220a75

Please sign in to comment.