Hefty pip install dependencies
Doing pip install inkex
pulls a lot of dependencies, in particular it depends on PyGObject
which requires sudo apt install libgirepository1.0-dev
on Ubuntu. This is undesirable when you develop your own inkex
based extension and would like to run tests in an isolated environment or in a CI pipeline.
I propose to make PyGObject
an optional dependency, installable with pip install inkex[gui]
.
Other dependencies that a typical Inkscape extension won't need:
-
scour
: Not used byinkex
, only used byoutput_scour.py
-
pySerial
: Used byinkex.ports
(but not required byimport inkex
) -
Pillow
: Used byinkex.RasterOutputExtension.load()
(not required byimport inkex
)