Bug 1321456
| Summary: | RFE: drop hard dependency on the default tk backend | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Volker Fröhlich <volker27> |
| Component: | python-matplotlib | Assignee: | Elliott Sales de Andrade <quantum.analyst> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | cstratak, gwync, jonathan.underwood, jspaleta, paulo.cesar.pereira.de.andrade, python-sig, tomspur |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-matplotlib-3.10.0-1.fc42 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-01-11 06:22:57 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Volker Fröhlich
2016-03-27 11:44:06 UTC
What solution would you suggest? Matplotlib depends on one (random) backend and I don't think it makes much difference to depend on another one instead, which then drags in other dependencies. In theory, we could add virtual provides to all backend subpackagers, e.g.:
Provides: python[23]-matplotlib-backend
and then add a hard dependency on it to the main package:
Requires: python[23]-matplotlib-backend = %{version}-%{release}
We could also favour the tk backend by using
Recommends: python[23]-matplotlib-%{backend_subpackage} = %{version}-%{release}
I'll have to test how well this works in practice.
The default backend is also written in the default configuration file. IIRC, it is not possible to pick a random, existing backend because of that. Or did that change recently? No, I haven't changed that. I imagine it's possible to make it work like this:
if just one backend is installed, set it in matplotlibrc
else (more than one is installed):
if tk backend is present, set tk in matplotlibrc
else pick the last one installed
I'm not sure it's worth the effort, though.
Basically, I meant to say: patches welcome. This package has changed maintainer in the Fedora. Reassigning to the new maintainer of this component. Matplotlib supports picking a backend at runtime, if the config doesn't set one. I will move the default to `Suggests` for the next release. FEDORA-2025-6c9050243f (python-matplotlib-3.10.0-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-6c9050243f FEDORA-2025-6c9050243f (python-matplotlib-3.10.0-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. |