forked from iustin/pyxattr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·36 lines (34 loc) · 1.18 KB
/
setup.py
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
30
31
32
33
34
35
36
#!/usr/bin/python
import distutils
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
long_desc = """This is a C extension module for Python which
implements extended attributes manipulation. It is a wrapper on top
of the attr C library - see attr(5)."""
version = "0.5.2"
author = "Iustin Pop"
author_email = "[email protected]"
macros = [
("_XATTR_VERSION", '"%s"' % version),
("_XATTR_AUTHOR", '"%s"' % author),
("_XATTR_EMAIL", '"%s"' % author_email),
]
setup(name = "pyxattr",
version = version,
description = "Filesystem extended attributes for python",
long_description = long_desc,
author = author,
author_email = author_email,
url = "http://pyxattr.k1024.org/",
download_url = "https://github.com/iustin/pyxattr/downloads",
license = "LGPL",
ext_modules = [Extension("xattr", ["xattr.c"],
libraries=["attr"],
define_macros=macros,
extra_compile_args=["-Wall", "-Werror"],
)],
test_suite = "test",
platforms = ["Linux"],
)