Skip to content

Commit 4c8b2ea

Browse files
authored
BLD: Try stripping wheels (pandas-dev#51251)
* BLD: Try stripping wheels * fix syntax?
1 parent cbbf33c commit 4c8b2ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ parentdir_prefix = "pandas-"
143143
[tool.cibuildwheel]
144144
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
145145
build-verbosity = "3"
146+
environment = { LDFLAGS="-Wl,--strip-debug" }
146147
test-requires = "hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17"
147148
test-command = "python {project}/ci/test_wheels.py"
148149

@@ -160,6 +161,13 @@ select = "*-win*"
160161
# missing from the wheel
161162
test-command = ""
162163

164+
[[tool.cibuildwheel.overrides]]
165+
# Don't strip wheels on macOS.
166+
# macOS doesn't support stripping wheels with linker
167+
# https://github.com/MacPython/numpy-wheels/pull/87#issuecomment-624878264
168+
select = "*-macosx*"
169+
environment = ""
170+
163171
[[tool.cibuildwheel.overrides]]
164172
select = "*-win32"
165173
environment = { IS_32_BIT="true" }

0 commit comments

Comments
 (0)