@@ -142,25 +142,34 @@ manylinux-aarch64-image = "manylinux_2_28"
142142manylinux-pypy_x86_64-image = " manylinux_2_28"
143143manylinux-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 ]
147151before-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"
148152test-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 ]
154158build-frontend = " build"
155159test-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 ]
160164build-frontend = " build"
161165test-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