diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2013-07-07 23:37:59 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2013-07-07 23:37:59 +0200 |
commit | 40c8647f78a611a2af9cbb96f7db2e4fe8fcedf7 (patch) | |
tree | 51390a789250e8bd58b8be9a95336eb71f66109c /setup.py | |
parent | f32955b692c5243eb17c36ff3136d27043136d3f (diff) | |
download | babel-40c8647f78a611a2af9cbb96f7db2e4fe8fcedf7.tar.gz |
Added a setup.py command for building and importing the cldr
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -14,6 +14,7 @@ import os import sys +import subprocess from setuptools import setup sys.path.append(os.path.join('doc', 'common')) @@ -23,6 +24,24 @@ except ImportError: build_doc = test_doc = None +from distutils.cmd import Command + + +class import_cldr(Command): + description = 'imports and converts the CLDR data' + user_options = [] + + def initialize_options(self): + pass + + def finalize_options(self): + pass + + def run(self): + c = subprocess.Popen([sys.executable, 'scripts/download_import_cldr.py']) + c.wait() + + setup( name = 'Babel', version = '1.0', @@ -55,7 +74,8 @@ setup( 'pytz', ], - cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}, + cmdclass = {'build_doc': build_doc, 'test_doc': test_doc, + 'import_cldr': import_cldr}, zip_safe = False, test_suite = 'babel.tests.suite', |