Skip to content

Commit 4f87488

Browse files
committed
DOC: document the issues with overlaying new mpl on old mpl
closes matplotlib#26827
1 parent 3f91524 commit 4f87488

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/api/prev_api_changes/api_changes_3.8.0/behaviour.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,18 @@ saved.
171171

172172
Previously, *mincnt* was inclusive with no *C* provided but exclusive when *C* is provided.
173173
It is now inclusive of *mincnt* in both cases.
174+
175+
176+
``matplotlib.mpl_toolkits`` is now an implicit namespace package
177+
----------------------------------------------------------------
178+
179+
Following the deprecation of ``pkg_resources.declare_namespace`` in ``setuptools`` 67.3.0,
180+
``matplotlib.mpl_toolkits`` is now implemented as an implicit namespace, following
181+
`PEP 420 <https://peps.python.org/pep-0420/>`_.
182+
183+
As a consequence using ``pip`` to install a version of Matplotlib >= 3.8 on top
184+
of a version of Matplotlib < 3.8 (e.g. via ``pip install --local`` or
185+
``python -m venv --system-site-packages ...``) will fail because the old
186+
`matplotlib.mpl_toolkits` files will be found where as the newer files will be
187+
found for all other modules. This will result in errors due to the version
188+
miss-match.

0 commit comments

Comments
 (0)