changeset 52236:81e59988e11c stable tip

wheels: make sure we create the `dist/` directory in the make target The embarrassing details of how this was discovered will be kept under silence.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Nov 2024 23:50:35 +0100
parents 0b63b7026516
children
files contrib/packaging/build-linux-wheels.sh
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/packaging/build-linux-wheels.sh	Fri Nov 15 23:34:43 2024 +0100
+++ b/contrib/packaging/build-linux-wheels.sh	Fri Nov 15 23:50:35 2024 +0100
@@ -26,6 +26,12 @@
     --ignored \
     --no-confirm
 
+
+if [ ! -e /src/dist/ ]; then
+    mkdir -p /src/dist
+    chown `stat /src/ -c %u:%g` /src/dist/
+fi
+
 for py in $PYTHON_TARGETS; do
     echo 'build wheel for' $py
     # cleanup any previous wheel
@@ -36,6 +42,6 @@
     contrib/build-one-linux-wheel.sh $py $tmp_wd
     # fix the owner back to the repository owner
     chown `stat /src/ -c %u:%g` $tmp_wd/*.whl
-    mv $tmp_wd/*.whl /src/dist
+    mv $tmp_wd/*.whl /src/dist/
 done