|
@@ -7,6 +7,7 @@
|
7
|
7
|
#
|
8
|
8
|
#
|
9
|
9
|
|
|
10
|
+from setuptools.command.develop import develop
|
10
|
11
|
#This is just a work-around for a Python2.7 issue causing
|
11
|
12
|
#interpreter crash at exit when trying to log an info message.
|
12
|
13
|
try:
|
|
@@ -25,6 +26,17 @@ except ImportError:
|
25
|
26
|
use_setuptools()
|
26
|
27
|
from setuptools import setup, find_packages
|
27
|
28
|
|
|
29
|
+
|
|
30
|
+class DevelopWithCompileCatalog(develop):
|
|
31
|
+ def run(self):
|
|
32
|
+ from babel.messages.frontend import compile_catalog
|
|
33
|
+ compiler = compile_catalog(self.distribution)
|
|
34
|
+ option_dict = self.distribution.get_option_dict('compile_catalog')
|
|
35
|
+ compiler.domain = option_dict['domain'][1]
|
|
36
|
+ compiler.directory = option_dict['directory'][1]
|
|
37
|
+ compiler.run()
|
|
38
|
+ super().run()
|
|
39
|
+
|
28
|
40
|
classifiers = [
|
29
|
41
|
"License :: OSI Approved :: GNU Affero General Public License v3",
|
30
|
42
|
"Programming Language :: Python",
|
|
@@ -56,6 +68,10 @@ install_requires=[
|
56
|
68
|
'preview-generator'
|
57
|
69
|
]
|
58
|
70
|
|
|
71
|
+setup_requires = [
|
|
72
|
+ 'babel',
|
|
73
|
+],
|
|
74
|
+
|
59
|
75
|
setup(
|
60
|
76
|
name='tracim',
|
61
|
77
|
version='1.0.0',
|
|
@@ -93,5 +109,8 @@ setup(
|
93
|
109
|
dependency_links=[
|
94
|
110
|
'http://github.com/algoo/preview-generator/tarball/master#egg=preview_generator-1.0',
|
95
|
111
|
],
|
96
|
|
- zip_safe=False
|
|
112
|
+ zip_safe=False,
|
|
113
|
+ cmdclass={
|
|
114
|
+ 'develop': DevelopWithCompileCatalog,
|
|
115
|
+ },
|
97
|
116
|
)
|