Skip to content

Commit

Permalink
Disable extra gettext_compact on 3.12 or later when building (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
rffontenelle authored Nov 28, 2024
1 parent b1f26be commit beddecd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beddecd

Please sign in to comment.