Add tabs
This commit is contained in:
+12
@@ -285,12 +285,24 @@ macOS has built-in [System Integrity protections](https://developer.apple.com/li
|
|||||||
|
|
||||||
To work around this, use a different environment variable such as `REPAIR_LIBRARY_PATH` to store the library path, and set `DYLD_LIBRARY_PATH` in [`CIBW_REPAIR_WHEEL_COMMAND_MACOS`](https://cibuildwheel.readthedocs.io/en/stable/options/#repair-wheel-command), like this:
|
To work around this, use a different environment variable such as `REPAIR_LIBRARY_PATH` to store the library path, and set `DYLD_LIBRARY_PATH` in [`CIBW_REPAIR_WHEEL_COMMAND_MACOS`](https://cibuildwheel.readthedocs.io/en/stable/options/#repair-wheel-command), like this:
|
||||||
|
|
||||||
|
!!! tab examples "Environment variables"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
|
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
|
||||||
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} &&
|
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel} &&
|
||||||
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
|
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! tab examples "pyproject.toml"
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[tool.cibuildwheel.macos]
|
||||||
|
repair_wheel_command = [
|
||||||
|
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel}",
|
||||||
|
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
See [#816](https://github.com/pypa/cibuildwheel/issues/816), thanks to @phoerious for reporting.
|
See [#816](https://github.com/pypa/cibuildwheel/issues/816), thanks to @phoerious for reporting.
|
||||||
|
|
||||||
### Windows: 'ImportError: DLL load failed: The specific module could not be found'
|
### Windows: 'ImportError: DLL load failed: The specific module could not be found'
|
||||||
|
|||||||
Reference in New Issue
Block a user