Merge pull request #1322 from ankith26/update-delocate-default
Tweak default mac repair cmd: use delocate-wheel verbose flag instead of extra listdeps command
This commit is contained in:
@@ -42,9 +42,6 @@ musllinux-s390x-image = "musllinux_1_1"
|
|||||||
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
|
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
|
||||||
|
|
||||||
[tool.cibuildwheel.macos]
|
[tool.cibuildwheel.macos]
|
||||||
repair-wheel-command = [
|
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
|
||||||
"delocate-listdeps {wheel}",
|
|
||||||
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.cibuildwheel.windows]
|
[tool.cibuildwheel.windows]
|
||||||
|
|||||||
+5
-6
@@ -323,18 +323,17 @@ To work around this, use a different environment variable such as `REPAIR_LIBRAR
|
|||||||
|
|
||||||
```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-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
|
||||||
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! tab examples "pyproject.toml"
|
!!! tab examples "pyproject.toml"
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[tool.cibuildwheel.macos]
|
[tool.cibuildwheel.macos]
|
||||||
repair-wheel-command = [
|
repair-wheel-command = """\
|
||||||
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-listdeps {wheel}",
|
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel \
|
||||||
"DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
|
--require-archs {delocate_archs} -w {dest_dir} -v {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.
|
||||||
|
|||||||
+1
-1
@@ -851,7 +851,7 @@ Platform-specific environment variables are also available:<br/>
|
|||||||
Default:
|
Default:
|
||||||
|
|
||||||
- on Linux: `'auditwheel repair -w {dest_dir} {wheel}'`
|
- on Linux: `'auditwheel repair -w {dest_dir} {wheel}'`
|
||||||
- on macOS: `'delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}'`
|
- on macOS: `'delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}'`
|
||||||
- on Windows: `''`
|
- on Windows: `''`
|
||||||
|
|
||||||
A shell command to repair a built wheel by copying external library dependencies into the wheel tree and relinking them.
|
A shell command to repair a built wheel by copying external library dependencies into the wheel tree and relinking them.
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ def get_default_repair_command(platform):
|
|||||||
if platform == "linux":
|
if platform == "linux":
|
||||||
return "auditwheel repair -w {dest_dir} {wheel}"
|
return "auditwheel repair -w {dest_dir} {wheel}"
|
||||||
elif platform == "macos":
|
elif platform == "macos":
|
||||||
return "delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
|
return "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
|
||||||
elif platform == "windows":
|
elif platform == "windows":
|
||||||
return ""
|
return ""
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user