Quiet pip install output. (#5288)

pip install generates a lot of lines of output that make it harder to see what
tox is running in general. This adds the -q flag to pip install.

At the same time, add `set -x` in install_and_test.sh and pip_install.sh so they
echo the commands they are running. This makes it a little clearer what's going
on in tests.

I didn't put `set -x` at the top or in the shebang, because moving it lower lets
us avoid echoing some of the messy if/then setup statements in these scripts,
which focussed attention on the pip install command.
This commit is contained in:
Jacob Hoffman-Andrews
2017-12-01 23:40:09 -08:00
committed by GitHub
parent 394dafd38c
commit 7319cc975a
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -6,11 +6,12 @@
# constraints.
if [ "$CERTBOT_NO_PIN" = 1 ]; then
pip_install="pip install -e"
pip_install="pip install -q -e"
else
pip_install="$(dirname $0)/pip_install_editable.sh"
fi
set -x
for requirement in "$@" ; do
$pip_install $requirement
pkg=$(echo $requirement | cut -f1 -d\[) # remove any extras such as [dev]
+3 -1
View File
@@ -11,5 +11,7 @@ trap "rm -f $certbot_auto_constraints" EXIT
sed -n -e 's/^\([^[:space:]]*==[^[:space:]]*\).*$/\1/p' $requirements > $certbot_auto_constraints
dev_constraints="$(dirname $my_path)/pip_constraints.txt"
set -x
# install the requested packages using the pinned requirements as constraints
pip install --constraint $certbot_auto_constraints --constraint $dev_constraints "$@"
pip install -q --constraint $certbot_auto_constraints --constraint $dev_constraints "$@"