File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,3 +180,12 @@ convention = "numpy"
180180[tool .scikit-build ]
181181metadata.version.provider = " scikit_build_core.metadata.setuptools_scm"
182182cmake.source-dir = " src"
183+ wheel.py-api = " cp312"
184+
185+ [tool .cibuildwheel ]
186+ build = " cp311-* cp312-*"
187+ archs = " auto"
188+ build-frontend = " build[uv]"
189+
190+ [tool .cibuildwheel .macos ]
191+ environment = { MACOSX_DEPLOYMENT_TARGET =" 10.13" }
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.15...3. 26 )
1+ cmake_minimum_required (VERSION 3.26 )
22project (
33 "${SKBUILD_PROJECT_NAME} "
44 LANGUAGES CXX
55 VERSION "${SKBUILD_PROJECT_VERSION} " )
66
7- if (CMAKE_VERSION VERSION_LESS 3.18)
8- set (DEV_MODULE Development)
9- else ()
10- set (DEV_MODULE Development.Module)
11- endif ()
12-
13- find_package (Python 3.11 COMPONENTS Interpreter ${DEV_MODULE} REQUIRED )
7+ find_package (Python 3.11 COMPONENTS Interpreter Development.Module ${SKBUILD_SABI_COMPONENT} REQUIRED )
148
159# Default to "Release" build type unless specified,
1610# recommended by nanobind docs
@@ -25,7 +19,7 @@ execute_process(
2519 OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE nanobind_ROOT )
2620find_package (nanobind CONFIG REQUIRED )
2721
28- nanobind_add_module (_calc_mod calcmod.cpp )
22+ nanobind_add_module (_calc_mod STABLE_ABI calcmod.cpp )
2923
3024target_compile_definitions (_calc_mod
3125 PRIVATE VERSION_INFO=${PROJECT_VERSION} )
You can’t perform that action at this time.
0 commit comments