Skip to content

Commit 96912d8

Browse files
committed
fix: force compatible pygobject
1 parent 5a20459 commit 96912d8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

install-weblate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ WEBLATE_HOME=~weblate
7171

7272
# Install Weblate and deps
7373
sudo -u weblate virtualenv --python=python3 "$WEBLATE_HOME/weblate-env"
74-
sudo -u weblate "$WEBLATE_HOME/weblate-env/bin/pip" install "Weblate[all,zxcvbn]$WEBLATE_VERSION" wllegal
74+
sudo -u weblate "$WEBLATE_HOME/weblate-env/bin/pip" install "Weblate[all,zxcvbn]$WEBLATE_VERSION" wllegal 'pygobject<3.52'
7575

7676
PYVER=$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')
7777

upgrade-weblate

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ else
138138
# Prebuild wheels, they are stored in the cache
139139
WHEELS=$(mktemp -d)
140140
chown "$USERNAME" "$WHEELS"
141-
sudo -u "$USERNAME" "$WEBLATE_ENV/bin/pip" wheel --wheel-dir "$WHEELS" "Weblate[${WEBLATE_FLAGS}]"
141+
sudo -u "$USERNAME" "$WEBLATE_ENV/bin/pip" wheel --wheel-dir "$WHEELS" "Weblate[${WEBLATE_FLAGS}]" 'pygobject<3.52'
142142
rm -rf "$WHEELS"
143143

144144
if [ $LAZY_RESTART -eq 0 ]; then
@@ -175,7 +175,7 @@ else
175175
cd "$OLD_DIR"
176176
fi
177177
# shellcheck disable=SC2086
178-
sudo -u "$USERNAME" "$WEBLATE_ENV/bin/pip" install --upgrade-strategy eager --upgrade $PIP_ARGS "${WEBLATE_PKG}[${WEBLATE_FLAGS}]"
178+
sudo -u "$USERNAME" "$WEBLATE_ENV/bin/pip" install 'pygobject<3.52' --upgrade-strategy eager --upgrade $PIP_ARGS "${WEBLATE_PKG}[${WEBLATE_FLAGS}]"
179179

180180
# Adjust configuration
181181
if [ "$DO_DIFF" -eq 1 ]; then

0 commit comments

Comments
 (0)