Fix distributing and loading of data files

This commit is contained in:
coderkun 2017-05-06 16:38:14 +02:00
commit 680ac1896a
2 changed files with 16 additions and 8 deletions

View file

@ -60,15 +60,20 @@ setup(
author_email = "olli@coderkun.de",
license = "GPL",
packages = [
"mcg"
'mcg',
'mcg/data'
],
package_dir = {
'mcg': 'mcg'
'mcg': 'mcg',
'mcg/data': 'data'
},
package_data = {
'mcg': [
'LICENSE',
'README.textile'
],
'mcg/data': [
'de.coderkun.mcg.gresource'
]
},
install_requires = [
@ -92,9 +97,6 @@ setup(
(os.path.join('share', 'glib-2.0', 'schemas'), [
"data/de.coderkun.mcg.gschema.xml"
]),
(os.path.join('share', 'mcg'), [
"data/de.coderkun.mcg.gresource",
]),
(os.path.join('share', 'locale', 'en', 'LC_MESSAGES'), [
'locale/en/LC_MESSAGES/mcg.mo'
]),