Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bd3a3e

Browse files
committed
build: Disable gettext_compact on 3.12 or later
1 parentb1f26be commit4bd3a3e

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)

[8]ページ先頭

©2009-2025 Movatter.jp