From 50cf05229b7b99e9827ffa93dfc5a07512676c28 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 23 Dec 2002 16:55:31 +0000 Subject: [PATCH] Initial revision --- README | 7 +++++++ setup.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 README create mode 100644 setup.py diff --git a/README b/README new file mode 100644 index 0000000..762997e --- /dev/null +++ b/README @@ -0,0 +1,7 @@ +This is an extesion for Python which implements POSIX ACLs (POSIX.1e). + +Right now, the module is known to build on Linux (the acl library must +be installed) and on FreeBSD. To add support, send a patch or contact +the author. + +Iustin Pop, diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bd8ff56 --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python2 + +import distutils, os +from distutils.core import setup, Extension + +(u_sysname, u_nodename, u_release, u_version, u_machine) = os.uname() + +macros = [] +libs = [] +if u_sysname == "Linux": + macros.append(("HAVE_LINUX", None)) + macros.append(("HAVE_LEVEL2", None)) + libs.append("acl") +elif u_sysname == "FreeBSD": + macros.append(("HAVE_FREEBSD", None)) + libs.append("posix1e") +else: + raise ValueError("I don't know your system. Please contact the author") + +setup(name="pyacl", + version="0.1", + description="POSIX ACLs for python", + long_description="""This is a C extension module for Python which + implements POSIX ACLs manipulation. It is a wrapper on top + of the acl C library - see acl(5).""", + author="Iustin Pop", + author_email="iusty@k1024.org", + ext_modules=[Extension("acl", ["acl.c"], + libraries=libs, + define_macros=macros, + )], + ) -- 2.39.2