]> git.k1024.org Git - debian-pyxattr.git/blob - setup.py
Move from manual to automatic debug packages
[debian-pyxattr.git] / setup.py
1 #!/usr/bin/python
2
3 import distutils
4 try:
5   from setuptools import setup, Extension
6 except ImportError:
7   from distutils.core import setup, Extension
8
9 long_desc = """This is a C extension module for Python which
10 implements extended attributes manipulation. It is a wrapper on top
11 of the attr C library - see attr(5)."""
12 version = "0.5.6"
13 author = "Iustin Pop"
14 author_email = "iustin@k1024.org"
15 macros = [
16     ("_XATTR_VERSION", '"%s"' % version),
17     ("_XATTR_AUTHOR", '"%s"' % author),
18     ("_XATTR_EMAIL", '"%s"' % author_email),
19     ]
20 setup(name = "pyxattr",
21       version = version,
22       description = "Filesystem extended attributes for python",
23       long_description = long_desc,
24       author = author,
25       author_email = author_email,
26       url = "http://pyxattr.k1024.org/",
27       download_url = "http://pyxattr.k1024.org/downloads/",
28       license = "LGPL",
29       ext_modules = [Extension("xattr", ["xattr.c"],
30                                libraries=["attr"],
31                                define_macros=macros,
32                                extra_compile_args=["-Wall", "-Werror", "-Wsign-compare"],
33                                )],
34       test_suite = "test",
35       platforms = ["Linux"],
36       )