Skip to content

Commit 26a6122

Browse files
authored
fix(build_docs.py): cleanup benchmark results after building latex (#2212)
1 parent 09c1df3 commit 26a6122

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

distribution/build_docs.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def build_benchmark_tex(
8787
examples_path=EXAMPLES_REPO_PATH / "examples",
8888
output_path=output_path,
8989
)
90+
assert benchmarks_path.is_file()
9091

9192
# convert markdown benchmark results to LaTeX
9293
with set_dir(RELEASE_NOTES_PATH):
@@ -97,9 +98,10 @@ def build_benchmark_tex(
9798
)
9899
assert not ret, out + err
99100
assert tex_path.is_file()
101+
assert (RELEASE_NOTES_PATH / f"{benchmarks_path.stem}.tex").is_file()
100102

101-
if (DISTRIBUTION_PATH / f"{benchmarks_path.stem}.md").is_file():
102-
assert (RELEASE_NOTES_PATH / f"{benchmarks_path.stem}.tex").is_file()
103+
# clean up benchmark results
104+
benchmarks_path.unlink()
103105

104106

105107
def build_deprecations_tex(force: bool = False):

0 commit comments

Comments
 (0)