fix snap build

* use a different way to avoid depending on i18n in tox
 * add __init__.py files to new packages
This commit is contained in:
Michael Hudson-Doyle 2018-06-13 12:55:58 +12:00
parent c9e87438ae
commit 9ef56239f8
4 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1 @@
#

View File

@ -29,7 +29,7 @@ import sys
setup_kwargs = {}
# dpkg build uses build and install, tox uses sdist
if sys.argv[1] in ("build", "install"):
if 'SUBIQUITY_NO_I18N' not in os.environ:
from DistUtilsExtra.command import build_extra
from DistUtilsExtra.command import build_i18n
setup_kwargs['cmdclass'] = {'build': build_extra.build_extra,

View File

@ -0,0 +1 @@
#

View File

@ -7,6 +7,7 @@ recreate = True
[testenv]
basepython = python3
setenv =
SUBIQUITY_NO_I18N = 1
FAKE_TRANSLATE = always
PYTHONPATH = {toxinidir}/fake_deps