Skip to content

Commit c4d8fda

Browse files
committed
Add experimental repair.wheel option
Signed-off-by: Cristian Le <git@lecris.dev>
1 parent bcdd665 commit c4d8fda

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ wheel.exclude = []
220220
# The build tag to use for the wheel. If empty, no build tag is used.
221221
wheel.build-tag = ""
222222

223+
# Do automatic repairs of the compiled binaries and libraries.
224+
wheel.repair = false
225+
223226
# If CMake is less than this value, backport a copy of FindPython.
224227
backport.find-python = "3.26.1"
225228

docs/reference/configs.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,15 @@ print(mk_skbuild_docs())
574574
This value is used to construct ``SKBUILD_SABI_COMPONENT`` CMake variable.
575575
```
576576

577+
```{eval-rst}
578+
.. confval:: wheel.repair
579+
:type: ``bool``
580+
:default: false
581+
582+
Do automatic repairs of the compiled binaries and libraries.
583+
584+
.. warning::
585+
This is an experimental feature gated by :confval:`experimental`
586+
```
587+
577588
<!-- [[[end]]] -->

src/scikit_build_core/resources/scikit-build.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@
239239
"type": "string",
240240
"default": "",
241241
"description": "The build tag to use for the wheel. If empty, no build tag is used."
242+
},
243+
"repair": {
244+
"type": "boolean",
245+
"default": false,
246+
"description": "Do automatic repairs of the compiled binaries and libraries."
242247
}
243248
}
244249
},

src/scikit_build_core/settings/skbuild_model.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,14 @@ class WheelSettings:
314314
The build tag to use for the wheel. If empty, no build tag is used.
315315
"""
316316

317+
repair: bool = False
318+
"""
319+
Do automatic repairs of the compiled binaries and libraries.
320+
321+
.. warning::
322+
This is an experimental feature gated by :confval:`experimental`
323+
"""
324+
317325

318326
@dataclasses.dataclass
319327
class BackportSettings:

0 commit comments

Comments
 (0)