changeset 757:38914e43f0dd

setup.py: include i18n/mo/*.mo and some other files
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 08 Jun 2006 17:30:01 +0200
parents df1f57a8a286
children 439817d28d4f
files MANIFEST.in setup.py
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MANIFEST.in	Thu Jun 08 12:49:22 2006 +0200
+++ b/MANIFEST.in	Thu Jun 08 17:30:01 2006 +0200
@@ -10,7 +10,7 @@
 recursive-include docs *
 
 # include stuff for translators
-recursive-include   MoinMoin/i18n README Makefile *.txt *.py POTFILES.in *.po* *.mo
+recursive-include   MoinMoin/i18n *
 
 # contrib stuff
 recursive-include   contrib *
--- a/setup.py	Thu Jun 08 12:49:22 2006 +0200
+++ b/setup.py	Thu Jun 08 17:30:01 2006 +0200
@@ -235,6 +235,15 @@
         'MoinMoin._tests',
     ],
 
+    # TODO package_dir and package_data only works for python >= 2.4
+    # in case we don't require python >= 2.4 for 1.6 release, we need to find
+    # a solution for python 2.3.x
+    'package_dir': { 'MoinMoin.i18n': 'MoinMoin/i18n', },
+    'package_data': { 'MoinMoin.i18n': ['README', 'Makefile', 'MoinMoin.pot', 'POTFILES.in',
+                                        '*.po',
+                                        'mo/*',
+                                        'tools/*',], },
+
     # Override certain command classes with our own ones
     'cmdclass': {
         'build_scripts': build_scripts_moin,