From 2629e3a6f879c3aabc112dfe6ef69a780af4faf0 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Wed, 15 May 2024 11:41:17 -0400 Subject: [PATCH] ENH: Build changes suggested by @ncullen93 --- CMakeLists.txt | 6 ++---- pyproject.toml | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb126617..e62a06fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) # Try to import all Python components potentially needed by nanobind find_package(Python 3.8 - REQUIRED COMPONENTS Interpreter Development.Module - OPTIONAL_COMPONENTS Development.SABIModule) + REQUIRED COMPONENTS Interpreter Development.Module) # Import nanobind through CMake's find_package mechanism find_package(nanobind CONFIG REQUIRED) @@ -40,10 +39,9 @@ add_library(imageMathUtilities STATIC src/antscore/ImageMathHelper2D.cxx src/an target_link_libraries(antsUtilities ${ITK_LIBRARIES}) target_link_libraries(registrationUtilities ${ITK_LIBRARIES}) target_link_libraries(imageMathUtilities ${ITK_LIBRARIES}) - + nanobind_add_module( lib - STABLE_ABI NB_STATIC src/main.cpp src/antscore/antsAffineInitializer.cxx diff --git a/pyproject.toml b/pyproject.toml index 87498864..f90008bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,9 +39,6 @@ minimum-version = "0.4" # Setuptools-style build caching in a local directory build-dir = "build/{wheel_tag}" -# Build stable ABI wheels for CPython 3.12+ -wheel.py-api = "cp311" - cmake.args = [] wheel.packages = ["ants"]