diff --git a/scripts/setup.sh b/scripts/setup.sh index 0c5a95adf..0eabad9a6 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