Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67d57bc

Browse files
authored
Merge pull request #21684 from meeseeksmachine/auto-backport-of-pr-21662-on-v3.5.x
Backport PR #21662 on branch v3.5.x (FIX: put newline in matplotlibrc when setting default backend)
2 parents 9d30a1a + a0c51e1 commit 67d57bc

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.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)