2019-09-30 15:37:21 -05:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
|
|
|
VERBOSE='--verbose'
|
|
|
|
QUIET=
|
2022-02-07 10:47:43 -06:00
|
|
|
PROGRESSBAR='--progress-bar=on'
|
2019-09-30 15:37:21 -05:00
|
|
|
else
|
|
|
|
VERBOSE=
|
|
|
|
QUIET='--quiet'
|
2022-02-07 10:47:43 -06:00
|
|
|
PROGRESSBAR='--progress-bar=off'
|
2019-09-30 15:37:21 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
PIP="sudo -H -u ${user} PIP_CONFIG_FILE=${envpath}/pip.conf ${envpath}/bin/pip"
|
|
|
|
|
|
|
|
|
|
|
|
# upgrade pip
|
2022-02-07 10:47:43 -06:00
|
|
|
$PIP install $QUIET $PROGRESSBAR --upgrade pip
|
2019-09-30 15:37:21 -05:00
|
|
|
|
|
|
|
# upgrade rattail
|
|
|
|
cd ${envpath}/src/rattail
|
|
|
|
if [ "$(sudo -H -u ${user} git status --porcelain)" != '' ]; then
|
|
|
|
sudo -H -u ${user} git status
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
sudo -H -u ${user} git pull $QUIET
|
|
|
|
find . -name '*.pyc' -delete
|
2022-02-07 10:47:43 -06:00
|
|
|
$PIP install $QUIET $PROGRESSBAR --upgrade --upgrade-strategy eager --editable .
|