Skip to content

Commit beddecd

Browse files
authored
Disable extra gettext_compact on 3.12 or later when building (#243)
1 parent b1f26be commit beddecd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ test -n ${PYDOC_LANGUAGE+x}
1010

1111
cd "$(dirname $0)/.."
1212
mkdir -p logs
13-
opts="-D gettext_compact=False -D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt"
13+
14+
# If version is 3.12 or older, set gettext_compact.
15+
# This confval is not needed since 3.12.
16+
# In 3.13, its presence messes 3.13's syntax checking (?)
17+
opts="-D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt"
18+
minor_version=$(git branch --show-current | sed 's|^3\.||')
19+
if [ $minor_version -lt 12 ]; then
20+
opts += '-D gettext_compact=False'
21+
fi
22+
1423
make -C cpython/Doc html SPHINXOPTS="${opts}"
1524

1625
# Remove empty file

0 commit comments

Comments
 (0)
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