From 4bd3a3ea13625c8a65858a5edc81926d280e0663 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Sat, 9 Nov 2024 07:32:19 -0300 Subject: [PATCH] build: Disable gettext_compact on 3.12 or later --- scripts/build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index de517c946..6be5c8028 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -10,7 +10,16 @@ test -n ${PYDOC_LANGUAGE+x} cd "$(dirname $0)/.." mkdir -p logs -opts="-D gettext_compact=False -D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt" + +# If version is 3.12 or older, set gettext_compact. +# This confval is not needed since 3.12. +# In 3.13, its presence messes 3.13's syntax checking (?) +opts="-D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt" +minor_version=$(git branch --show-current | sed 's|^3\.||') +if [ $minor_version -lt 12 ]; then + opts += '-D gettext_compact=False' +fi + make -C cpython/Doc html SPHINXOPTS="${opts}" # Remove empty file pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy