This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch gc/8580
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/gc/8580 by this push:
     new 895a4ee0e [#8580] fall back to "pip" if uv is not installed (e.g. 
within init-docker-dev.sh)
895a4ee0e is described below

commit 895a4ee0e38a1a6eb845291cef2350fffd62eebc
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Fri May 23 14:11:12 2025 -0400

    [#8580] fall back to "pip" if uv is not installed (e.g. within 
init-docker-dev.sh)
---
 rebuild-all.bash | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/rebuild-all.bash b/rebuild-all.bash
index 050b0433e..adcd1d304 100755
--- a/rebuild-all.bash
+++ b/rebuild-all.bash
@@ -17,6 +17,8 @@
 #       specific language governing permissions and limitations
 #       under the License.
 
+PIP=$(command -v uv >/dev/null 2>&1 && echo "uv pip" || echo "pip")
+
 APPS=(Allura* *Forge*)
 
 # the "${...-e}" magic is inspired by this stack exchange and turns a list 
into a oneline
@@ -25,10 +27,10 @@ APPS_WITH_DASH_E="${APPS[@]/#/-e ./}"
 
 # don't install ForgeSVN in a main command, since it often is not installable, 
and its optional
 APPS_DASHE_NO_SVN="${APPS_WITH_DASH_E//-e .\/ForgeSVN/}"  # string replacement
-uv pip install $APPS_DASHE_NO_SVN
+$PIP install $APPS_DASHE_NO_SVN
 main_ret=$?
 
-uv pip install -e ./ForgeSVN
+$PIP install -e ./ForgeSVN
 if [ "$?" -gt 0 ]; then
   echo -e "\nIt is okay that ForgeSVN failed.  It needs pysvn which can be 
difficult to install."
   echo "You can ignore this error.  If you do want SVN support, see 
install_each_step.rst notes about SVN."

Reply via email to