Browse Source

Fixes transparent translation compilation

Adrien Panay 7 years ago
parent
commit
5c72954c03
1 changed files with 5 additions and 8 deletions
  1. 5 8
      tracim/setup.py

+ 5 - 8
tracim/setup.py View File

18
 
18
 
19
     def run(self):
19
     def run(self):
20
         """Compiles binary translation files from catalog."""
20
         """Compiles binary translation files from catalog."""
21
-        from babel.messages.frontend import compile_catalog
22
-        compiler = compile_catalog(self.distribution)
23
-        option_dict = self.distribution.get_option_dict('compile_catalog')
24
-        compiler.domain = option_dict['domain'][1]
25
-        compiler.directory = option_dict['directory'][1]
26
-        compiler.run()
27
         super().run()
21
         super().run()
22
+        self.run_command('compile_catalog')
28
 
23
 
29
 
24
 
30
 classifiers = [
25
 classifiers = [
56
     'pytz==2014.7',
51
     'pytz==2014.7',
57
     'rq==0.7.1',
52
     'rq==0.7.1',
58
     'filedepot>=0.5.0',
53
     'filedepot>=0.5.0',
59
-    'preview-generator'
54
+    'preview-generator',
55
+    'babel',
60
 ]
56
 ]
61
 
57
 
62
 setup_requires = [
58
 setup_requires = [
63
     'babel',
59
     'babel',
64
-],
60
+]
65
 
61
 
66
 setup(
62
 setup(
67
     name='tracim',
63
     name='tracim',
75
     url='https://github.com/tracim/tracim',
71
     url='https://github.com/tracim/tracim',
76
     packages=find_packages(exclude=['ez_setup']),
72
     packages=find_packages(exclude=['ez_setup']),
77
     install_requires=install_requires,
73
     install_requires=install_requires,
74
+    setup_requires=setup_requires,
78
     include_package_data=True,
75
     include_package_data=True,
79
     test_suite='nose.collector',
76
     test_suite='nose.collector',
80
     tests_require=testpkgs,
77
     tests_require=testpkgs,