Skip to content

Commit 11e3c43

Browse files
committed
chore: update cibuildwheel config
Signed-off-by: Henry Schreiner <[email protected]>
1 parent e590595 commit 11e3c43

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if(CMakePythonDistributions_SUPERBUILD)
3333

3434
option(BUILD_VERBOSE "Build reporting additional information (e.g download progress, ...)" ON)
3535

36-
option(RUN_CMAKE_TEST "Run CMake test suite when built from sources" ON)
36+
option(RUN_CMAKE_TEST "Run CMake test suite when built from sources" OFF)
3737

3838
set(RUN_CMAKE_TEST_EXCLUDE "BootstrapTest" CACHE STRING "CMake test suite exclusion regex")
3939

pyproject.toml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,35 @@ test-extras = "test"
7070
test-command = "pytest {project}/tests"
7171
build-verbosity = 1
7272

73+
[tool.cibuildwheel.macos.environment]
74+
MACOSX_DEPLOYMENT_TARGET = "10.10"
75+
7376
[tool.cibuildwheel.linux]
74-
before-all = [
75-
'./scripts/manylinux-build-and-install-openssl.sh',
76-
]
77-
environment = { CMAKE_ARGS = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl -DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link -DCMAKE_JOB_POOLS:STRING=compile=4;link=1 -DCMAKE_CXX_STANDARD:STRING=11" }
77+
before-all = "./scripts/manylinux-build-and-install-openssl.sh"
7878

79-
[[tool.cibuildwheel.overrides]]
80-
select = ["*-manylinux_aarch64", "*-manylinux_ppc64le", "*-manylinux_s390x"]
81-
# disable tests on those platforms, QEMU is taking to long for jobs to pass on GHA
82-
environment = { CMAKE_ARGS = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl -DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link -DCMAKE_JOB_POOLS:STRING=compile=4;link=1 -DCMAKE_CXX_STANDARD:STRING=11 -DRUN_CMAKE_TEST:BOOL=OFF" }
79+
[tool.cibuildwheel.config-settings]
80+
config-settings."cmake.define.RUN_CMAKE_TEST" = "ON"
81+
82+
[tool.cibuildwheel.linux.config-settings]
83+
"cmake.define.OPENSSL_ROOT_DIR" = "/usr/local/ssl"
84+
"cmake.define.CMAKE_JOB_POOL_COMPILE" = "compile"
85+
"cmake.define.CMAKE_JOB_POOL_LINK" = "link"
86+
"cmake.define.CMAKE_JOB_POOLS" = "compile=4;link=1"
87+
config-settings."cmake.define.RUN_CMAKE_TEST" = "ON"
8388

8489
[[tool.cibuildwheel.overrides]]
85-
select = ["*-musllinux_x86_64", "*-musllinux_i686"]
90+
select = ["*-musllinux_*",]
91+
inherit.config-settings = "append"
8692
# disable some tests
8793
# - BootstrapTest fails with custom OpenSSL and probably does not make much sense for this project
8894
# - ExportImport|RunCMake.install|RunCMake.file-GET_RUNTIME_DEPENDENCIES: c.f. https://discourse.cmake.org/t/cmake-test-suite-failing-on-alpine-linux/5064
89-
environment = { CMAKE_ARGS = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl -DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link -DCMAKE_JOB_POOLS:STRING=compile=4;link=1 -DRUN_CMAKE_TEST_EXCLUDE:STRING='BootstrapTest|ExportImport|RunCMake.install|RunCMake.RuntimePath|RunCMake.file-GET_RUNTIME_DEPENDENCIES'" }
95+
config-settings."cmake.define.RUN_CMAKE_TEST_EXCLUDE" = "BootstrapTest|ExportImport|RunCMake.install|RunCMake.RuntimePath|RunCMake.file-GET_RUNTIME_DEPENDENCIES"
9096

9197
[[tool.cibuildwheel.overrides]]
92-
select = ["*-musllinux_aarch64", "*-musllinux_ppc64le", "*-musllinux_s390x"]
98+
select = ["*linux_aarch64", "*linux_ppc64le", "*linux_s390x"]
99+
inherit.config-settings = "append"
93100
# disable tests on those platforms, QEMU is taking to long for jobs to pass on GHA
94-
environment = { CMAKE_ARGS = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl -DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link -DCMAKE_JOB_POOLS:STRING=compile=4;link=1 -DRUN_CMAKE_TEST:BOOL=OFF" }
95-
96-
[tool.cibuildwheel.macos.environment]
97-
MACOSX_DEPLOYMENT_TARGET = "10.10"
101+
config-settings."cmake.define.RUN_CMAKE_TEST" = "OFF"
98102

99103

100104
[tool.ruff]

0 commit comments

Comments
 (0)