]> git.k1024.org Git - pylibacl.git/blob - setup.py
Addedd __setstate__ and some docs
[pylibacl.git] / setup.py
1 #!/usr/bin/env python2
2
3 import distutils, os
4 from distutils.core import setup, Extension
5
6 (u_sysname, u_nodename, u_release, u_version, u_machine) = os.uname()
7
8 macros = []
9 libs = []
10 if u_sysname == "Linux":
11     macros.append(("HAVE_LINUX", None))
12     macros.append(("HAVE_LEVEL2", None))
13     libs.append("acl")
14 elif u_sysname == "FreeBSD":
15     macros.append(("HAVE_FREEBSD", None))
16     libs.append("posix1e")
17 else:
18     raise ValueError("I don't know your system. Please contact the author")
19
20 version = "0.1"
21 setup(name="pylibacl",
22       version=version,
23       description="POSIX.1e ACLs for python",
24       long_description="""This is a C extension module for Python which
25       implements POSIX ACLs manipulation. It is a wrapper on top
26       of the systems's acl C library - see acl(5).""",
27       author="Iustin Pop",
28       author_email="iusty@k1024.org",
29       url="http://pylibacl.sourceforge.net",
30       license="GPL",
31       ext_modules=[Extension("posixacl", ["acl.c"],
32                              libraries=libs,
33                              define_macros=macros,
34                              )],
35       data_files=[("/usr/share/doc/pylibacl-%s" % version, ["README",])],
36       )