virtualenv instead.
If you have a git checkout instead of a source release you will need
-to convert the CLDR sources. This can be done fully automated by
-the download script:
+to convert the CLDR sources:
- $ python ./scripts/download_import_cldr.py
+ $ python setup.py import_cldr install
For advanced options, please refer to the easy_install and/or the distutils
documentation:
import os
import sys
+import subprocess
from setuptools import setup
sys.path.append(os.path.join('doc', 'common'))
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',
'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',