8000 Backport PR #21662: FIX: put newline in matplotlibrc when setting def… · matplotlib/matplotlib@a0c51e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0c51e1

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #21662: FIX: put newline in matplotlibrc when setting default backend
1 parent 9d30a1a commit a0c51e1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ jobs:
222222
fi
223223
fi
224224
225+
cat <<EOT >> mplsetup.cfg
226+
[rc_options]
227+
backend=Agg
228+
EOT
229+
230+
cat mplsetup.cfg
231+
225232
# All dependencies must have been pre-installed, so that the minver
226233
# constraints are held.
227234
python -m pip install --no-deps -e .

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def update_matplotlibrc(path):
212212
idx for idx, line in enumerate(template_lines)
213213
if "#backend:" in line]
214214
template_lines[backend_line_idx] = (
215-
"#backend: {}".format(setupext.options["backend"])
215+
"#backend: {}\n".format(setupext.options["backend"])
216216
if setupext.options["backend"]
217217
else "##backend: Agg")
218218
path.write_text("".join(template_lines))

0 commit comments

Comments
 (0)
0