You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by di...@apache.org on 2022/05/24 17:11:39 UTC

[allura] branch dw/8428 created (now bd0826e36)

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

dill0wn pushed a change to branch dw/8428
in repository https://gitbox.apache.org/repos/asf/allura.git


      at bd0826e36 [#8428] convert setup.py develop to pip install -e

This branch includes the following new commits:

     new bd0826e36 [#8428] convert setup.py develop to pip install -e

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[allura] 01/01: [#8428] convert setup.py develop to pip install -e

Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a commit to branch dw/8428
in repository https://gitbox.apache.org/repos/asf/allura.git

commit bd0826e365473bbce1579f11d514121711320096
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Tue May 24 17:11:30 2022 +0000

    [#8428] convert setup.py develop to pip install -e
---
 rebuild-all.bash | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/rebuild-all.bash b/rebuild-all.bash
index 36001f436..725755808 100755
--- a/rebuild-all.bash
+++ b/rebuild-all.bash
@@ -17,11 +17,7 @@
 #       specific language governing permissions and limitations
 #       under the License.
 
-for APP in Allura* *Forge*
-do
-    echo "# setting up $APP dependencies"
-    pushd $APP > /dev/null
-    python setup.py -q develop || echo "    # Error setting up $APP
-    # You may want to run 'pip uninstall $APP' to un-register it so you don't get further errors."
-    popd > /dev/null
-done
+# the "${...-e}" magic is inspired by this stack exchange and turns a list into a oneline
+# https://unix.stackexchange.com/a/445522
+APPS=(Allura* *Forge*)
+pip install --no-index "${APPS[@]/#/-e}"  # 159.51s, 150.63s