diff --git a/setup.py b/setup.py index 6237487..9d400af 100644 --- a/setup.py +++ b/setup.py @@ -29,11 +29,14 @@ class build_mcg(build_py): def run(self, *args, **kwargs): - super(self.__class__, self).run(*args, **kwargs) self._build_gresources() if not self.distribution.no_compile_schemas: self._build_gschemas() + # This will copy the package_data and data_files, so we need to do this + # *after* we've compiled resources and schemas. + super(self.__class__, self).run(*args, **kwargs) + def _build_gresources(self): print("compiling gresources") @@ -92,7 +95,8 @@ setup( "data/icons/mcg.svg" ]), (os.path.join('share', 'glib-2.0', 'schemas'), [ - "data/xyz.suruatoel.mcg.gschema.xml" + "data/xyz.suruatoel.mcg.gschema.xml", + "data/gschemas.compiled", ]), (os.path.join('share', 'locale', 'en', 'LC_MESSAGES'), [ 'locale/en/LC_MESSAGES/mcg.mo'