Skip to content

Commit 243762c

Browse files
committed
1
1 parent bc41397 commit 243762c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

pyproject.toml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,25 +142,34 @@ manylinux-aarch64-image = "manylinux_2_28"
142142
manylinux-pypy_x86_64-image = "manylinux_2_28"
143143
manylinux-pypy_aarch64-image = "manylinux_2_28"
144144

145-
[tool.cibuildwheel.linux]
145+
environment-pass = ["CFLAGS", "CPPFLAGS", "LDFLAGS", "ARCHFLAGS", "CC", "CXX", "CL"]
146+
environment = { CFLAGS = "${CFLAGS:-} -O3 -fwrapv -fno-strict-overflow -Wno-unused-result -Wsign-compare -DNDEBUG", LDFLAGS = "${LDFLAGS:-}"}
147+
148+
[tool.cibuildwheel]
146149

150+
[tool.cibuildwheel.linux]
147151
before-build = "rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
148152
test-command = [
149-
"pytest {package}/tests/unit",
150-
"EVENT_LOOP_MANAGER=gevent pytest {package}/tests/unit/io/test_geventreactor.py",
153+
"pytest {project}/tests/unit",
154+
"EVENT_LOOP_MANAGER=gevent pytest {project}/tests/unit/io/test_geventreactor.py",
151155
]
152156

153157
[tool.cibuildwheel.macos]
154158
build-frontend = "build"
155159
test-command = [
156-
"pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)'",
160+
"pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)'",
157161
]
158162

159163
[tool.cibuildwheel.windows]
160164
build-frontend = "build"
161165
test-command = [
162-
"pytest {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\"",
166+
"pytest {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\"",
163167
]
164168

169+
[tool.cibuildwheel.windows.environment]
165170
# TODO: set CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST to yes when https://github.com/scylladb/python-driver/issues/429 is fixed
166-
environment = { CASS_DRIVER_BUILD_CONCURRENCY = "2", CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "no" }
171+
CASS_DRIVER_BUILD_CONCURRENCY = "2"
172+
CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "no"
173+
CFLAGS = "${CFLAGS:-} /O2 /MD /DNDEBUG /utf-8 /W3 /EHsc /Zc:inline"
174+
CL = "${CL:-} /O2 /MD /DNDEBUG /utf-8 /W3 /EHsc /Zc:inline"
175+
LDFLAGS = "${LDFLAGS:-} /OPT:REF /OPT:ICF"

0 commit comments

Comments
 (0)