strings: Microoptimizations, saves about 10% of runtime.
[python-collate.git] / setup.py
1 #!/usr/bin/env python
2
3 import sys
4
5 from distutils.core import setup, Extension
6 from Pyrex.Distutils import build_ext
7
8 if sys.platform.startswith('win'):
9 libraries = ['icuin', 'icuuc', 'icudt']
10 else:
11 libraries = ['icui18n', 'icuuc', 'icudata']
12
13 setup(name='collate',
14 version='0.1',
15 author="Joe Wreschnig",
16 author_email="joe.wreschnig@gmail.com",
17 description="Python text collation",
18 license="MIT / ZPL 2.1",
19 ext_modules=[
20 Extension('collate.icu._icu',
21 ['collate/icu/_icu.pyx'],
22 libraries=libraries)],
23 cmdclass=dict(build_ext=build_ext),
24 packages=["collate", "collate.icu"],
25 long_description="""\
26 This module provides tools to sort strings in a 'human-expected'
27 order. Because human expectations are fuzzy and often
28 self-contradictory, the sort order is not guaranteed to be stable
29 between versions of this module (rather the opposite - the primary
30 reason to update it will probably be changed sort results). If
31 available, this module uses the ICU localization library. Otherwise,
32 it uses the system's locale database (and produces significantly worse
33 results).
34 """
35 )