]> git.k1024.org Git - pylibacl.git/blob - setup.py
- Update setup.py to 0.2.2
[pylibacl.git] / setup.py
1 #!/usr/bin/env python
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 == "GNU/kFreeBSD":
15     macros.append(("HAVE_LINUX", None))
16     macros.append(("HAVE_LEVEL2", None))
17     libs.append("acl")
18 elif u_sysname == "FreeBSD":
19     macros.append(("HAVE_FREEBSD", None))
20 else:
21     raise ValueError("I don't know your system '%s'."
22                      " Please contact the author" % u_sysname)
23
24 long_desc = """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 version = "0.2.2"
28 setup(name="pylibacl",
29       version=version,
30       description="POSIX.1e ACLs for python",
31       long_description=long_desc,
32       author="Iustin Pop",
33       author_email="iusty@k1024.org",
34       url="http://pylibacl.sourceforge.net",
35       license="GPL",
36       ext_modules=[Extension("posix1e", ["acl.c"],
37                              libraries=libs,
38                              define_macros=macros,
39                              )],
40       data_files=[("/usr/share/doc/pylibacl-%s" % version,
41                    ["README","IMPLEMENTATION", "PLATFORMS",
42                     "BENCHMARK",
43                     "posix1e.html", "posix1e.txt"])],
44       )