Skip to content

Commit 3ceb5ed

Browse files
committed
use SKBUILD_SABI_VERSION
1 parent da622fd commit 3ceb5ed

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

CMakeLists.txt

+3-6
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,9 @@ endif()
422422
file(MAKE_DIRECTORY ${ZMQ_BACKEND_DEST})
423423

424424
if(NOT "${SKBUILD_SABI_COMPONENT}" STREQUAL "")
425-
# set stable API
426-
# assume we are targeting >= current Python version
427-
# this isn't required, but we can't seem to get `wheel.py-api`
428-
# see https://github.com/scikit-build/scikit-build-core/issues/958
429-
set(SABI_ARG "USE_SABI;${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}")
430-
message(STATUS "Building with stable API ${SABI_ARG} for ${Python_SOABI}")
425+
# set stable ABI
426+
set(SABI_ARG "USE_SABI;${SKBUILD_SABI_VERSION}")
427+
message(STATUS "Building with stable ABI ${SABI_ARG} for ${Python_SOABI}")
431428
endif()
432429

433430
python_add_library(

0 commit comments

Comments
 (0)