Switch to unified view

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