Skip to content

Commit 0c9a2a8

Browse files
committed
use SKBUILD_SABI_VERSION
1 parent da622fd commit 0c9a2a8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,7 @@ file(MAKE_DIRECTORY ${ZMQ_BACKEND_DEST})
423423

424424
if(NOT "${SKBUILD_SABI_COMPONENT}" STREQUAL "")
425425
# 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}")
426+
set(SABI_ARG "USE_SABI;${SKBUILD_SABI_VERSION}")
430427
message(STATUS "Building with stable API ${SABI_ARG} for ${Python_SOABI}")
431428
endif()
432429

0 commit comments

Comments
 (0)