aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-expat/files/setup.py
blob: 70e666742c8494858d8800e7fa12225cdbded136 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# To use:
#       python setup.py install
#

__version__ = "$FreeBSD$"

try:
    import distutils
    from distutils import sysconfig
    from distutils.command.install import install
    from distutils.core import setup, Extension
except:
    raise SystemExit, "Distutils problem"

prefix = sysconfig.PREFIX
inc_dirs = [prefix + "/include"]
lib_dirs = [prefix + "/lib"]
libs = ["expat"]

setup(name = "pyexpat",
      description = "Interface to the Expat XML parser",
      
      ext_modules = [Extension("pyexpat", ["pyexpat.c"],
                               include_dirs = inc_dirs,
                               define_macros = [("HAVE_EXPAT_H", 1)],
                               libraries = libs,
                               library_dirs = lib_dirs)]
      )