Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f26be commit beddecdCopy full SHA for beddecd
scripts/build.sh
@@ -10,7 +10,16 @@ test -n ${PYDOC_LANGUAGE+x}
10
11
cd "$(dirname $0)/.."
12
mkdir -p logs
13
-opts="-D gettext_compact=False -D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt"
+
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
23
make -C cpython/Doc html SPHINXOPTS="${opts}"
24
25
# Remove empty file
0 commit comments