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

Skip to content

Commit fbf81e7

Browse files
authored
Merge pull request #21577 from meeseeksmachine/auto-backport-of-pr-21527-on-v3.5.x
2 parents 0eaca61 + f60afd7 commit fbf81e7

File tree

3 files changed

+311
-22
lines changed

3 files changed

+311
-22
lines changed

doc/api/prev_api_changes/api_changes_3.5.0/development.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,39 @@ some :ref:`optional dependencies <optional_dependencies>` are being bumped:
1818
This is consistent with our :ref:`min_deps_policy` and `NEP29
1919
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__
2020

21+
New wheel architectures
22+
~~~~~~~~~~~~~~~~~~~~~~~
23+
24+
Wheels have been added for:
25+
26+
- Python 3.10
27+
- PyPy 3.7
28+
- macOS on Apple Silicon (both arm64 and universal2)
29+
30+
New build dependencies
31+
~~~~~~~~~~~~~~~~~~~~~~
32+
33+
Versioning has been switched from bundled versioneer to `setuptools-scm
34+
<https://github.com/pypa/setuptools_scm/>`__ using the
35+
``release-branch-semver`` version scheme. The latter is well-maintained, but
36+
may require slight modification to packaging scripts.
37+
38+
The `setuptools-scm-git-archive
39+
<https://pypi.org/project/setuptools-scm-git-archive/>`__ plugin is also used
40+
for consistent version export.
41+
42+
Data directory is no longer optional
43+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44+
45+
Historically, the ``mpl-data`` directory has been optional (example files were
46+
unnecessary, and fonts could be deleted if a suitable dependency on a system
47+
font were provided). Though example files are still optional, they have been
48+
substantially pared down, and we now consider the directory to be required.
49+
50+
Specifically, the ``matplotlibrc`` file found there is used for runtime
51+
verifications and must exist. Packagers may still symlink fonts to system
52+
versions if needed.
53+
2154
New runtime dependencies
2255
~~~~~~~~~~~~~~~~~~~~~~~~
2356

doc/users/explain/backends.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,23 @@ for more details.
232232

233233
.. _QT_API-usage:
234234

235-
How do I select PyQt5 or PySide2?
236-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
235+
How do I select the Qt implementation?
236+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
237237

238-
The :envvar:`QT_API` environment variable can be set to either ``pyqt5`` or
239-
``pyside2`` to use ``PyQt5`` or ``PySide2``, respectively.
238+
The QtAgg and QtCairo backends support both Qt 5 and 6, as well as both Python
239+
bindings (`PyQt`_ or `Qt for Python`_, a.k.a. PySide). If any binding has
240+
already been loaded, then it will be used for the Qt backend. Otherwise, the
241+
first available binding is used, in the order: PyQt6, PySide6, PyQt5, PySide2.
240242

241-
Since the default value for the bindings to be used is ``PyQt5``, Matplotlib
242-
first tries to import it. If the import fails, it tries to import
243-
``PySide2``.
243+
The :envvar:`QT_API` environment variable can be set to override the search
244+
when nothing has already been loaded. It may be set to (case-insensitively)
245+
PyQt6, PySide6, PyQt5, or PySide2 to pick the version and binding to use. If
246+
the chosen implementation is unavailable, the Qt backend will fail to load
247+
without attempting any other Qt implementations.
244248

245249
Using non-builtin backends
246250
--------------------------
247251
More generally, any importable backend can be selected by using any of the
248252
methods above. If ``name.of.the.backend`` is the module containing the
249253
backend, use ``module://name.of.the.backend`` as the backend name, e.g.
250-
``matplotlib.use('module://name.of.the.backend')``.
254+
``matplotlib.use('module://name.of.the.backend')``.

0 commit comments

Comments
 (0)