You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2023/05/19 16:16:44 UTC

[allura] branch master updated: with recent versions of pip but no wheel pkg, "pip install -e .." needs setuptools, so --no-index is a problem. Remove that, and update folder paths to be clearly folders to ensure they don't get installed from PyPI

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

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


The following commit(s) were added to refs/heads/master by this push:
     new bd2e9179c with recent versions of pip but no wheel pkg, "pip install -e .." needs setuptools, so --no-index is a problem.  Remove that, and update folder paths to be clearly folders to ensure they don't get installed from PyPI
bd2e9179c is described below

commit bd2e9179c352bf4d87705cc1f31c2d5663cef2e8
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Fri May 19 12:16:29 2023 -0400

    with recent versions of pip but no wheel pkg, "pip install -e .." needs setuptools, so --no-index is a problem.  Remove that, and update folder paths to be clearly folders to ensure they don't get installed from PyPI
---
 rebuild-all.bash | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rebuild-all.bash b/rebuild-all.bash
index e547c2fc4..f11519687 100755
--- a/rebuild-all.bash
+++ b/rebuild-all.bash
@@ -21,14 +21,14 @@ APPS=(Allura* *Forge*)
 
 # the "${...-e}" magic is inspired by this stack exchange and turns a list into a oneline
 # https://unix.stackexchange.com/a/445522
-APPS_WITH_DASH_E="${APPS[@]/#/-e}"
+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//-eForgeSVN/}"  # string replacement
-pip install --no-index $APPS_DASHE_NO_SVN
+pip install $APPS_DASHE_NO_SVN
 main_ret=$?
 
-pip install --no-index -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."