This is an automated email from the ASF dual-hosted git repository. tvalentyn pushed a commit to branch tvalentyn-patch-5 in repository https://gitbox.apache.org/repos/asf/beam.git
commit 65c9d77e5207517b3f70f0e0134b8ef7fa56272d Author: tvalentyn <tvalen...@users.noreply.github.com> AuthorDate: Thu Dec 7 15:08:05 2023 -0800 Retry building a wheel up to 3 times. --- sdks/python/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdks/python/build.gradle b/sdks/python/build.gradle index 7795e77e396..ab6f75fc653 100644 --- a/sdks/python/build.gradle +++ b/sdks/python/build.gradle @@ -99,11 +99,12 @@ platform_identifiers_map.each { platform, idsuffix -> environment CIBW_ENVIRONMENT: "SETUPTOOLS_USE_DISTUTILS=stdlib" // note: sync cibuildwheel version with GitHub Action // .github/workflow/build_wheel.yml:build_wheels "Install cibuildwheel" step + // note(https://github.com/pypa/cibuildwheel/issues/1692): cibuildwheel appears to timeout occasionally. executable 'sh' args '-c', ". ${envdir}/bin/activate && " + "pip install cibuildwheel==2.9.0 && " + "cibuildwheel --print-build-identifiers --platform ${platform} --archs ${archs} && " + - "cibuildwheel --output-dir ${buildDir} --platform ${platform} --archs ${archs}" + "for i in {1..3}; do cibuildwheel --output-dir ${buildDir} --platform ${platform} --archs ${archs} && break; done" } } } @@ -162,4 +163,4 @@ tasks.register("wordCount") { args '-c', ". ${envdir}/bin/activate && python -m apache_beam.examples.wordcount --runner DirectRunner --output /tmp/output.txt" } } -} \ No newline at end of file +}