# setup.py - distutils configuration for esm and esmre modules
# Copyright (C) 2007 Tideway Systems Limited.
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
# USA

from setuptools import setup, Extension
from Cython.Build import cythonize

                    
setup (name = "esmre",
       version = '0.5',
       description = 'Regular expression accelerator',
       long_description = " ".join("""
module1 = Extension(
    "esm", ["src/esm.pyx", "src/esm/aho_corasick.c", "src/esm/ac_list.c"]
)

        Modules used to accelerate execution of a large collection of regular
        expressions using the Aho-Corasick algorithms.
       """.strip().split()),
       classifiers = [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: '
            'GNU Library or Lesser General Public License (LGPL)',
        'Operating System :: POSIX',
        'Programming Language :: C',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Text Processing :: Indexing'
       ],
       install_requires=['setuptools'],
       author = 'Will Harris',
       author_email = 'esmre@greatlibrary.net',
       url = 'http://code.google.com/p/esmre/',
       license = 'GNU LGPL',
       platforms = ['POSIX'],
       ext_modules = cythonize([module1]),
       package_dir = {'': 'src'},
       py_modules = ["esmre"],
       test_suite = 'nose.collector',
       tests_require = 'nose',
)

@@ -917,28 +917,105 @@
 ze%0A%0A
-                    
+module1 = Extension(%0A    %22esm%22, %5B%22src/esm.pyx%22, %22src/esm/aho_corasick.c%22, %22src/esm/ac_list.c%22%5D%0A)%0A
 %0Aset
@@ -1156,106 +1156,8 @@
 %22%22%22%0A
-module1 = Extension(%0A    %22esm%22, %5B%22src/esm.pyx%22, %22src/esm/aho_corasick.c%22, %22src/esm/ac_list.c%22%5D%0A)%0A%0A
     

Embed sources from libesm