Package: python-matplotlib
Version: 2.1.1-1
Severity: serious
Justification: Policy 3.5, packages must specify all dependencies

Dear Maintainer,

Thanks for the new version of matplotlib!

The new version of matplotlib introduces a dependency on
python-backports.functools-lru-cache for the Python 2 version of the
package. Omitting this package makes matplotlib more or less
unusable:

$ python -c "import matplotlib"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 128, in 
<module>
    from matplotlib.rcsetup import defaultParams, validate_backend, cycler
  File "/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in 
<module>
    from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
  File "/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", 
line 32, in <module>
    from backports.functools_lru_cache import lru_cache
ImportError: No module named backports.functools_lru_cache

The code in question does:

try:
    from functools import lru_cache
except ImportError:
    from backports.functools_lru_cache import lru_cache

python-backports.functools-lru-cache is included in the build-dependencies
and so the build-time tests pass, but the package tests do not:

    https://ci.debian.net/packages/m/matplotlib/unstable/amd64/

cheers
Stuart

Reply via email to