Skip to content

Commit

Permalink
[CI] CIBW increase MACOSX_DEPLOYMENT_TARGET to 10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Dec 2, 2024
1 parent 1412099 commit 3c9bb5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ jobs:
CIBW_ARCHS_MACOS: 'x86_64 universal2 arm64'
CIBW_BUILD: 'cp311-* pp39-*'
CIBW_ENVIRONMENT: 'PIP_FIND_LINKS=${{ github.workspace }}/dist PY_BUILD_CMAKE_VERBOSE=1'
CIBW_ENVIRONMENT_MACOS: 'PIP_FIND_LINKS=${{ github.workspace }}/dist PY_BUILD_CMAKE_VERBOSE=1 MACOSX_DEPLOYMENT_TARGET="10.15"'
CIBW_ENVIRONMENT_LINUX: 'PIP_FIND_LINKS=/project/dist PY_BUILD_CMAKE_VERBOSE=1'
CIBW_ENVIRONMENT_WINDOWS: 'PIP_FIND_LINKS=D:/a/py-build-cmake/py-build-cmake/dist PY_BUILD_CMAKE_VERBOSE=1'
- name: Upload Wheels
Expand Down
6 changes: 4 additions & 2 deletions examples/nanobind-project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exclude = []
[tool.py-build-cmake.cmake]
minimum_version = "3.26"
build_type = "Release"
source_path = "." # Containing CMakeLists.txt
source_path = "." # Containing CMakeLists.txt
options = {}
args = ["-Wdev"]
find_python3 = false
Expand Down Expand Up @@ -88,8 +88,10 @@ testpaths = ["tests"]

[tool.cibuildwheel]
build-verbosity = 1
environment = { PY_BUILD_CMAKE_VERBOSE="1" }
environment = { PY_BUILD_CMAKE_VERBOSE = "1" }
test-command = "pytest {package}/tests"
test-extras = ["test"]
[tool.cibuildwheel.windows]
archs = ["AMD64", "x86"] # No ARM64: https://gitlab.kitware.com/cmake/cmake/-/issues/26493
[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }

0 comments on commit 3c9bb5f

Please sign in to comment.