specify pycairo as 'interpolatable' extra dependency

Fixes https://github.com/fonttools/fonttools/issues/3382
This commit is contained in:
Cosimo Lupo 2023-12-14 11:43:09 +00:00
parent 33d8b4633c
commit 1eccbda852
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8
2 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,13 @@ are required to unlock the extra features named "ufo", etc.
* `munkres <https://pypi.python.org/pypi/munkres>`__: a pure-Python
module that implements the Hungarian or Kuhn-Munkres algorithm.
To plot the results to a PDF or HTML format, you also need to install:
* `pycairo <https://pypi.org/project/pycairo/>`__: Python bindings for the
Cairo graphics library. Note that wheels are currently only available for
Windows, for other platforms see pycairo's `installation instructions
<https://pycairo.readthedocs.io/en/latest/getting_started.html>`__.
*Extra:* ``interpolatable``
- ``Lib/fontTools/varLib/plot.py``

View File

@ -120,6 +120,9 @@ extras_require = {
# use pure-python alternative on pypy
"scipy; platform_python_implementation != 'PyPy'",
"munkres; platform_python_implementation == 'PyPy'",
# to output PDF or HTML reports. NOTE: wheels are only available for
# windows currently, other platforms will need to build from source.
"pycairo",
],
# for fontTools.varLib.plot, to visualize DesignSpaceDocument and resulting
# VariationModel