diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 1bd4d297a294..7bbbb1a2e3db 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -244,13 +244,13 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.10' - uses: docker/setup-qemu-action@v3 if: ${{matrix.os_python.arch == 'aarch64'}} name: Set up QEMU - name: Install cibuildwheel # note: sync cibuildwheel version with gradle task sdks:python:bdistPy* steps - run: pip install cibuildwheel==3.3.1 setuptools + run: pip install cibuildwheel==2.23.3 setuptools - name: Build wheel # Only build wheel if it is one of the target versions for this platform, otherwise no-op if: ${{ contains(matrix.os_python.python, matrix.py_version) }} diff --git a/sdks/python/build.gradle b/sdks/python/build.gradle index 6e0786d98553..970020da8605 100644 --- a/sdks/python/build.gradle +++ b/sdks/python/build.gradle @@ -200,7 +200,6 @@ platform_identifiers_map.each { platform, idsuffix -> } getVersionsAsList('python_versions').each { it -> def pyversion = it.replace('.', '') - def cibuildwheel_version = it == '3.10' ? '2.23.3' : '3.3.1' project.tasks.register("bdistPy${pyversion}${platform}") { description "Build a Python wheel distribution for Py${pyversion} ${platform}" @@ -221,7 +220,7 @@ platform_identifiers_map.each { platform, idsuffix -> args '-c', ". ${envdir}/bin/activate && " + // note: sync cibuildwheel version with GitHub Action // .github/workflows/build_wheel.yml:build_wheels "Install cibuildwheel" step - "pip install cibuildwheel==${cibuildwheel_version} setuptools && " + + "pip install cibuildwheel==2.23.3 setuptools && " + "cibuildwheel --print-build-identifiers --platform ${platform} --archs ${archs} && " + "cibuildwheel --output-dir ${buildDir} --platform ${platform} --archs ${archs} " }