2012-06-20 15:59:23 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# coding: utf-8
|
|
|
|
|
2012-06-20 01:41:36 +00:00
|
|
|
from distutils.core import setup, Extension
|
|
|
|
from Cython.Distutils import build_ext # use cython's buld_ext
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name = 'cchardet',
|
2012-06-20 15:59:23 +00:00
|
|
|
author= 'PyYoshi',
|
2012-06-20 12:45:57 +00:00
|
|
|
url = r"https://github.com/PyYoshi/cChardet",
|
2012-06-20 01:41:36 +00:00
|
|
|
description = 'Universal encoding detector',
|
2012-06-20 15:59:23 +00:00
|
|
|
long_description= """This library is high speed universal character encoding detector. - binding to charsetdetect.
|
|
|
|
This library is faster than chardet.
|
|
|
|
""",
|
2012-06-20 01:41:36 +00:00
|
|
|
version = '0.1',
|
2012-06-20 15:59:23 +00:00
|
|
|
classifiers = [
|
|
|
|
'Development Status :: 1 - Planning',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Programming Language :: Cython',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Topic :: Software Development :: Libraries',
|
|
|
|
],
|
|
|
|
keywords = [
|
|
|
|
'cython',
|
|
|
|
'chardet',
|
|
|
|
'universal character encoding detector',
|
|
|
|
'charsetdetect'
|
|
|
|
],
|
2012-06-20 01:41:36 +00:00
|
|
|
cmdclass = {'build_ext': build_ext},
|
|
|
|
ext_modules = [
|
|
|
|
Extension("cchardet",
|
|
|
|
sources = ["cchardet.pyx"],
|
2012-06-20 12:45:57 +00:00
|
|
|
libraries=['charsetdetect'],
|
2012-06-20 01:41:36 +00:00
|
|
|
language="c",
|
|
|
|
),
|
|
|
|
|
|
|
|
]
|
|
|
|
)
|