As far as I can tell, when using the python plugin there are 4 possible ways to include a python package in a snap:
- put an Ubuntu package name in stage-packages (e.g.
- put the PyPI name for the package in python-package (e.g.
- put the PyPI name in the install_requires list for setup.py
- put the PyPI name in the requirements.txt file.
I’ve already encountered some issues with, for example, including
python3-gi in stage-packages, rather than including
PyGObject in python-packages. The former yields run-time errors on a minimal PyGTK example while the latter works.
Could someone please speak to the accepted conventions for including python packages?