Skip to content

Commit 9df3fd7

Browse files
committed
chore: minor updates from review
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent e5d7824 commit 9df3fd7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/configuration/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ Scikit-build-core will only target ABI3 if the version of Python is equal to or
374374
newer than the one you set. `${SKBUILD_SABI_COMPONENT}` is set to
375375
`Development.SABIModule` when targeting ABI3 or ABI3T, and is an empty string
376376
otherwise. For free-threaded Python (PEP 703), you can use `cp315t` to target
377-
the free-threaded stable ABI, which sets `Py_TARGET_ABI3T` instead of
378-
`Py_LIMITED_API`.
377+
the free-threaded stable ABI, which sets `Py_TARGET_ABI3T` (if using CMake
378+
4.4+).
379379

380380
If you are not using CPython at all, you can specify any version of Python is
381381
fine:

src/scikit_build_core/builder/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def configure(
226226
else:
227227
limited_api = False
228228

229-
if limited_api and sys.implementation.name != "cpython":
229+
if (limited_api or ft_abi) and sys.implementation.name != "cpython":
230230
limited_api = False
231231
ft_abi = False
232232
logger.info("PyPy doesn't support the Limited API, ignoring")

0 commit comments

Comments
 (0)