python3Packages.matplotlib: setup.cfg -> mplsetup.cfg

This addresses a regression on darwin.

An alternative to this would be to set MPLSETUPCFG as was suggested in
This commit is contained in:
Dmitry Kalinkin
2021-12-15 14:50:20 -05:00
parent 1e85228aa6
commit 69221cf2d2
@@ -87,10 +87,10 @@ buildPythonPackage rec {
};
};
setup_cfg = writeText "setup.cfg" (lib.generators.toINI {} passthru.config);
mplsetup_cfg = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config);
preBuild = ''
cp "$setup_cfg" ./setup.cfg
cp "$mplsetup_cfg" ./mplsetup.cfg
'';
# Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the