[arvados] created: 2.7.0-6632-g05a8e1382d
git repository hosting
git at public.arvados.org
Tue May 28 16:19:31 UTC 2024
at 05a8e1382d1003c9992a48ca1d4fadca7aa47c0a (commit)
commit 05a8e1382d1003c9992a48ca1d4fadca7aa47c0a
Author: Brett Smith <brett.smith at curii.com>
Date: Tue May 28 12:17:59 2024 -0400
21840: Add wheels to the Jenkins Python package build
We were previously doing this in run_upload_packages. Now that that tool
is doing pure uploads with twine, we need to build the wheels in Jenkins
instead.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/build/run-build-packages-python-and-ruby.sh b/build/run-build-packages-python-and-ruby.sh
index 285bb11d71..f7abc2e011 100755
--- a/build/run-build-packages-python-and-ruby.sh
+++ b/build/run-build-packages-python-and-ruby.sh
@@ -51,12 +51,19 @@ gem_wrapper() {
handle_python_package () {
# This function assumes the current working directory is the python package directory
- if [ -n "$(find dist -name "*-$(nohash_version_from_git).tar.gz" -print -quit)" ]; then
+ local -a pkg_fmts=()
+ local version="$(nohash_version_from_git)"
+ if [[ -z "$(find dist -name "*-$version.tar.gz" -print -quit)" ]]; then
+ pkg_fmts+=(sdist)
+ fi
+ if [[ -z "$(find dist -name "*-$version.whl" -print -quit)" ]]; then
+ pkg_fmts+=(bdist_wheel)
+ fi
+ if [[ "${#pkg_fmts[@]}" -eq 0 ]]; then
echo "This package doesn't need rebuilding."
- return
+ else
+ python3 setup.py $DASHQ_UNLESS_DEBUG "${pkg_fmts[@]}"
fi
- # Make sure only to use sdist - that's the only format pip can deal with (sigh)
- python3 setup.py $DASHQ_UNLESS_DEBUG sdist
}
python_wrapper() {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list