When running snapcraft,
python3 -m pip install is failing with
distutils.errors.DistutilsOptionError: error in setup.cfg: command 'build' has no such option 'i18n' [or
I’m pretty sure it’s failing because pip is picking up the setup.cfg when installing the dependencies in the requirements.txt, whereas in reality setup.cfg is useful only for installing the main source package.
Now maybe my project’s
setup.py is stuck in the past and it shouldn’t really be using
DistUtilsExtra, because I can’t find a single instance of a snap on github that uses it. Or maybe my setup.py is missing some kind of clever workaround for the setup.cfg problem.
snapcraft should not fail when DistUtilsExtra is being used in the way my project uses it, does this indicate a need for
snapcraft to be improved? Or does my project’s snapcraft.yaml need some work done on it, perhaps by separating the installation of the python package dependencies from the installation of the project package itself so that the
setup.cfg is used only for the latter?
Please note this is my first attempt at building a snap package, so I wouldn’t be surprised if the
snapcraft.yaml is not ideal.