Skip to content

Commit a5980ad

Browse files
committed
Use proposed PR to fix false positive i18n warnings
1 parent afff2f1 commit a5980ad

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎scripts/setup.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ set -u
3232
pip install -r requirements.txt
3333
make -C cpython/Doc venv
3434

35+
# If cpython is set with Sphinx 9 or newer, replace it with maciek's patch
36+
sphinx_ver=$(cpython/Doc/venv/bin/python -c 'import sphinx; print(sphinx.__version__[0])')
37+
if [[ $sphinx_ver -eq 9 ]]; then
38+
cpython/Doc/venv/bin/pip install git+https://github.com/m-aciek/sphinx.git@copilot/fix-last-four-cases-issue-14162
39+
fi
40+
3541
if ! command -v tx > /dev/null; then
3642
echo "WARNING: Transifex CLI tool was not found."
3743
echo "If going to pull translations it is needed, can be ignored otherwise."
38-
echo "See https://github.com/transifex/cli for install info"
44+
echo "See https://github.com/transifex/cli for install info"
3945
fi

0 commit comments

Comments
 (0)