File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/scikit_build_core/builder Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,8 @@ backends:
220
220
- [ meson-python] [ ] : A meson-based build backend; has some maintainer overlap
221
221
with scikit-build-core.
222
222
- [ maturin] [ ] : A build backend for Rust projects, using Cargo.
223
- - [ enscons] [ ] : A SCons based backend, not very actively developed (it predates
224
- all the others in modern standard support!)
223
+ - [ enscons] [ ] : A SCons based backend, not very actively developed (but it
224
+ predates all the others in modern standard support!)
225
225
226
226
If you don't need a binary build, you don't need to use a binary build backend!
227
227
There are some very good Python build backends; we recommend [ hatchling] [ ] as a
@@ -253,6 +253,7 @@ Support for this work was provided by NSF cooperative agreement [OAC-2209877][].
253
253
[ OAC-2209877 ] : https://www.nsf.gov/awardsearch/showAward?AWD_ID=2209877&HistoricalAwards=false
254
254
[ hatchling ] : https://hatch.pypa.io/latest
255
255
[ maturin ] : https://www.maturin.rs
256
+ [ meson-python ] : https://meson-python.readthedocs.io
256
257
[ enscons ] : https://pypi.org/project/enscons
257
258
[ py-build-cmake ] : https://tttapa.github.io/py-build-cmake
258
259
<!-- prettier-ignore-end -->
Original file line number Diff line number Diff line change @@ -129,11 +129,14 @@ def configure(
129
129
if limited_abi is None :
130
130
if self .settings .wheel .py_api .startswith ("cp3" ):
131
131
target_minor_version = int (self .settings .wheel .py_api [3 :])
132
- limited_abi = target_minor_version > = sys .version_info .minor
132
+ limited_abi = target_minor_version < = sys .version_info .minor
133
133
else :
134
134
limited_abi = False
135
135
136
- python_library = get_python_library (self .config .env , abi3 = limited_abi )
136
+ python_library = get_python_library (self .config .env , abi3 = False )
137
+ python_sabi_library = (
138
+ get_python_library (self .config .env , abi3 = True ) if limited_abi else None
139
+ )
137
140
python_include_dir = get_python_include_dir ()
138
141
139
142
# Classic Find Python
@@ -151,6 +154,8 @@ def configure(
151
154
# FindPython may break if this is set - only useful on Windows
152
155
if python_library and sysconfig .get_platform ().startswith ("win" ):
153
156
cache_config [f"{ prefix } _LIBRARY" ] = python_library
157
+ if python_sabi_library and sysconfig .get_platform ().startswith ("win" ):
158
+ cache_config [f"{ prefix } _SABI_LIBRARY" ] = python_sabi_library
154
159
155
160
if limited_abi :
156
161
cache_config ["SKBUILD_SOABI" ] = (
You can’t perform that action at this time.
0 commit comments