You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2023/12/08 20:22:33 UTC
(beam) branch master updated: Retry building a wheel up to 3 times. (#29676)
This is an automated email from the ASF dual-hosted git repository.
tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new b7530a24fcc Retry building a wheel up to 3 times. (#29676)
b7530a24fcc is described below
commit b7530a24fccedea74355c8d1fc4ce92c1b39365a
Author: tvalentyn <tv...@users.noreply.github.com>
AuthorDate: Fri Dec 8 12:22:25 2023 -0800
Retry building a wheel up to 3 times. (#29676)
---
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
+}