From a5980ade13099fe0553ad80f7db16fc89154a5e5 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 16 Nov 2026 23:39:30 -0300 Subject: [PATCH 1/2] Use proposed PR to fix false positive i18n warnings --- scripts/setup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 0c5a95adf..61f90546a 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -32,8 +32,14 @@ set -u pip install -r requirements.txt make -C cpython/Doc venv +# If cpython is set with Sphinx 9 or newer, replace it with maciek's patch +sphinx_ver=$(cpython/Doc/venv/bin/python -c 'import sphinx; print(sphinx.__version__[0])') +if [[ $sphinx_ver -eq 9 ]]; then + cpython/Doc/venv/bin/pip install git+https://github.com/m-aciek/sphinx.git@copilot/fix-last-four-cases-issue-14162 +fi + if ! command -v tx > /dev/null; then echo "WARNING: Transifex CLI tool was not found." echo "If going to pull translations it is needed, can be ignored otherwise." - echo "See https://github.com/transifex/cli for install info" + echo "See https://github.com/transifex/cli for install info" fi From 912ec0f8d879e0f02861202ccdecf74e664ade5d Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Tue, 17 Nov 2026 00:04:39 -0300 Subject: [PATCH 2/2] Fix syntax for Sphinx version check in setup sh script --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 61f90546a..0eabad9a6 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -34,7 +34,7 @@ make -C cpython/Doc venv # If cpython is set with Sphinx 9 or newer, replace it with maciek's patch sphinx_ver=$(cpython/Doc/venv/bin/python -c 'import sphinx; print(sphinx.__version__[0])') -if [[ $sphinx_ver -eq 9 ]]; then +if [ ${sphinx_ver} -eq 9 ]; then cpython/Doc/venv/bin/pip install git+https://github.com/m-aciek/sphinx.git@copilot/fix-last-four-cases-issue-14162 fi