1from setuptools import setup, Extension 2 3long_description = ''' 4Version of the chm package modified to support Python 3 and bundled with Recoll. 5The chm package provides three modules, chm, chmlib and extra, which provide 6access to the API implemented by the C library chmlib and some additional 7classes and functions. They are used to access MS-ITSS encoded files - 8Compressed Html Help files (.chm). 9''' 10 11# For shadow builds: references to the source tree 12import os 13top = os.path.join('@srcdir@', '..', '..') 14pytop = '@srcdir@' 15 16setup(name="recollchm", 17 version="0.8.4.1+git", 18 description="Python package to handle CHM files", 19 author="Rubens Ramos", 20 author_email="rubensr@users.sourceforge.net", 21 maintainer="Mikhail Gusarov", 22 maintainer_email="dottedmag@dottedmag.net", 23 url="https://github.com/dottedmag/pychm", 24 license="GPL", 25 long_description=long_description, 26 package_dir = {'' : os.path.join(top, 'python', 'pychm')}, 27 py_modules=["recollchm.chm", "recollchm.chmlib"], 28 ext_modules=[Extension("recollchm._chmlib", 29 [os.path.join(pytop, "recollchm/swig_chm.c")], 30 libraries=["chm"], 31 extra_compile_args=["-DSWIG_COBJECT_TYPES"]), 32 Extension("recollchm.extra", 33 [os.path.join(pytop, "recollchm/extra.c")], 34 extra_compile_args=["-D__PYTHON__"], 35 libraries=["chm"])] 36 ) 37