Skip to content

Commit 0e2b56c

Browse files
authored
Merge pull request #4795 from mwichmann/issue/sphinx9-build
Fix Sphinx build, again
2 parents 8fea6a2 + 56bce1c commit 0e2b56c

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
2525
unknown argument ('explain') on creation, causing it to be considered
2626
an override. Also, if override dict is empty, don't even call the
2727
Override factory function.
28+
- Handle the default (unset) ProgressObject differently for the sole
29+
purpose of avoiding Sphinx 9.0+ blowing up on it (it's been giving
30+
a warning for years, but now it's a fatal error).
2831

2932

3033
RELEASE 4.10.1 - Sun, 16 Nov 2025 10:51:57 -0700

RELEASE.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ DOCUMENTATION
6262

6363
- More clarifications in manpage Builder Methods section.
6464

65+
- Handle the default (unset) ProgressObject differently for the sole
66+
purpose of avoiding Sphinx 9.0+ blowing up on it (it's been giving
67+
a warning for years, but now it's a fatal error). Affects only the
68+
API doc build.
69+
6570

6671
DEVELOPMENT
6772
-----------

SCons/Script/Main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def __call__(self, node) -> None:
178178
self.erase_previous()
179179
self.func(node)
180180

181-
ProgressObject = SCons.Util.Null()
181+
ProgressObject = None
182182

183183
def Progress(*args, **kw) -> None:
184184
"""Show progress during building - Public API."""
@@ -203,7 +203,7 @@ def display(self, message) -> None:
203203
display('scons: ' + message)
204204

205205
def prepare(self):
206-
if not isinstance(self.progress, SCons.Util.Null):
206+
if self.progress is not None:
207207
for target in self.targets:
208208
self.progress(target)
209209
return SCons.Taskmaster.OutOfDateTask.prepare(self)

doc/sphinx/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144
# Add any paths that contain custom static files (such as style sheets) here,
145145
# relative to this directory. They are copied after the builtin static files,
146146
# so a file named "default.css" will overwrite the builtin "default.css".
147-
html_static_path = ['_static']
147+
#
148+
# html_static_path = ['_static']
148149

149150
# Custom sidebar templates, must be a dictionary that maps document names
150151
# to template names.

0 commit comments

Comments
 (0)