Skip to content

Commit ec80529

Browse files
committed
arch64
1 parent 37c8929 commit ec80529

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

pyproject.toml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ tag_regex = '(?P<version>\d*?\.\d*?\.\d*?)-scylla'
128128

129129
[tool.cibuildwheel]
130130
build-frontend = "build[uv]"
131+
environment = { CASS_DRIVER_BUILD_CONCURRENCY = "2", CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "yes", CFLAGS = "-g0 -O3" }
131132
skip = [
133+
"cp2*",
134+
"cp36*",
135+
"cp37*",
132136
"cp38*",
133137
"*i686",
134138
"*musllinux*",
@@ -141,37 +145,39 @@ manylinux-aarch64-image = "manylinux_2_28"
141145
manylinux-pypy_x86_64-image = "manylinux_2_28"
142146
manylinux-pypy_aarch64-image = "manylinux_2_28"
143147

144-
environment-pass = ["CFLAGS", "CPPFLAGS", "LDFLAGS", "ARCHFLAGS", "CC", "CXX", "CL"]
145-
146-
[tool.cibuildwheel.environment]
147-
CASS_DRIVER_BUILD_CONCURRENCY = "2"
148-
CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "yes"
149-
CFLAGS = "${CFLAGS:-} -O3 -fwrapv -fno-strict-overflow -Wno-unused-result -Wsign-compare -DNDEBUG"
150-
LDFLAGS = "${LDFLAGS:-}"
151-
152148
[tool.cibuildwheel.linux]
149+
153150
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"
154151
test-command = [
155-
"pytest {project}/tests/unit",
156-
"EVENT_LOOP_MANAGER=gevent pytest {project}/tests/unit/io/test_geventreactor.py",
152+
"pytest {package}/tests/unit",
153+
"EVENT_LOOP_MANAGER=gevent pytest {package}/tests/unit/io/test_geventreactor.py",
157154
]
158155

159156
[tool.cibuildwheel.macos]
160157
build-frontend = "build"
161158
test-command = [
162-
"pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)'",
159+
"pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)'",
163160
]
164161

165162
[tool.cibuildwheel.windows]
166163
build-frontend = "build"
167164
test-command = [
168-
"pytest {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\"",
165+
"pytest {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\"",
169166
]
170167

171-
[tool.cibuildwheel.windows.environment]
172-
CASS_DRIVER_BUILD_CONCURRENCY = "2"
173168
# TODO: set CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST to yes when https://github.com/scylladb/python-driver/issues/429 is fixed
174-
CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "no"
175-
CFLAGS = "${CFLAGS:-} /O2 /MD /DNDEBUG /utf-8 /W3 /EHsc /Zc:inline"
176-
CL = "${CL:-} /O2 /MD /DNDEBUG /utf-8 /W3 /EHsc /Zc:inline"
177-
LDFLAGS = "${LDFLAGS:-} /OPT:REF /OPT:ICF"
169+
environment = { CASS_DRIVER_BUILD_CONCURRENCY = "2", CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "no" }
170+
171+
[[tool.cibuildwheel.overrides]]
172+
select = "cp3*t-*_aarch64"
173+
174+
test-command = [
175+
# purge pip/uv build caches that may reuse a configured source tree
176+
"rm -rf ~/.cache/pip ~/.cache/uv || true",
177+
# or more surgical (keeps other caches):
178+
"find ~/.cache -type f \\( -name config.log -o -name config.status \\) -delete || true",
179+
"python -m pip install -U pip wheel",
180+
"python -m pip install gevent greenlet",
181+
"pytest {package}/tests/unit",
182+
"EVENT_LOOP_MANAGER=gevent pytest {package}/tests/unit/io/test_geventreactor.py",
183+
]

0 commit comments

Comments
 (0)