From bcdea5056dcf31d230a8ce7caa99c629342fad12 Mon Sep 17 00:00:00 2001 From: Pieter Pas Date: Mon, 2 Dec 2024 13:29:50 +0100 Subject: [PATCH] [CI] CIBW increase MACOSX_DEPLOYMENT_TARGET to 10.15 --- .github/workflows/wheel.yml | 1 + examples/nanobind-project/pyproject.toml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 22959d8..27359b2 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -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 diff --git a/examples/nanobind-project/pyproject.toml b/examples/nanobind-project/pyproject.toml index 18e2930..a31e982 100644 --- a/examples/nanobind-project/pyproject.toml +++ b/examples/nanobind-project/pyproject.toml @@ -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 @@ -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" }