sortemes: Simplify some logic.
[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',
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 )