mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-03 15:01:00 +08:00
feat: install wsgi extra
This commit is contained in:
parent
afa02b5238
commit
fb1f472e78
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ WEBLATE_HOME=~weblate
|
||||||
|
|
||||||
# Install Weblate and deps
|
# Install Weblate and deps
|
||||||
sudo -u weblate virtualenv --python=python3 "$WEBLATE_HOME/weblate-env"
|
sudo -u weblate virtualenv --python=python3 "$WEBLATE_HOME/weblate-env"
|
||||||
sudo -u weblate "$WEBLATE_HOME/weblate-env/bin/pip" install "Weblate[all,zxcvbn]$WEBLATE_VERSION" wllegal 'pygobject<3.52'
|
sudo -u weblate "$WEBLATE_HOME/weblate-env/bin/pip" install "Weblate[all,zxcvbn,wsgi]$WEBLATE_VERSION" wllegal 'pygobject<3.52'
|
||||||
|
|
||||||
PYVER=$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')
|
PYVER=$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ else
|
||||||
WEBLATE_PKG="Weblate"
|
WEBLATE_PKG="Weblate"
|
||||||
PIP_ARGS=""
|
PIP_ARGS=""
|
||||||
fi
|
fi
|
||||||
WEBLATE_FLAGS="all,zxcvbn,wllegal"
|
WEBLATE_FLAGS="all,zxcvbn,wllegal,wsgi"
|
||||||
if [ -d "$WEBLATE_HOME/hosted" ]; then
|
if [ -d "$WEBLATE_HOME/hosted" ]; then
|
||||||
PIP_ARGS="--editable $WEBLATE_HOME/hosted $PIP_ARGS"
|
PIP_ARGS="--editable $WEBLATE_HOME/hosted $PIP_ARGS"
|
||||||
WEBLATE_FLAGS="$WEBLATE_FLAGS,mysql,saml2idp"
|
WEBLATE_FLAGS="$WEBLATE_FLAGS,mysql,saml2idp"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue