diff --git a/bin/install b/bin/install --- a/bin/install +++ b/bin/install @@ -1,3 +1,14 @@ #!/usr/bin/env bash -pip install $(./bin/pip-swh-packages --with-testing) "$@" +# Usage: bin/install [PIP_INSTALL_OPTION..] + +PREREQUISITES="pre-commit flake8 pifpaf tox wheel mypy" + +pip install --upgrade pip "$@" + +pip install $PREREQUISITES "$@" + +bin/pip-swh-packages --with-testing | \ + while read pkg_spec ; do + pip install $pkg_spec + done diff --git a/bin/pip-swh-packages b/bin/pip-swh-packages --- a/bin/pip-swh-packages +++ b/bin/pip-swh-packages @@ -9,11 +9,11 @@ ./bin/py-depgraph | grep -- '->' | - sed -e 's/[";]//g' -e 's/->//g' | + sed -e 's/[";]//g' -e 's/->//g' -e 's/\[.*$//g' | tsort | tac | grep '^swh\.' | sed 's:\.:-:g' | sed 's:^:-e :' | sed "s/$/$suffix/" | - sed -e 's/\]\[/,/g' + sed 's/\]\[/,/g'