]>
Commit | Line | Data |
---|---|---|
8befd5cc MG |
1 | #!/usr/bin/env python |
2 | ||
3 | # | |
4 | # Enhanced Seccomp Library Python Module Build Script | |
5 | # | |
6 | # Copyright (c) 2012 Red Hat <pmoore@redhat.com> | |
7 | # Author: Paul Moore <paul@paul-moore.com> | |
8 | # | |
9 | ||
10 | # | |
11 | # This library is free software; you can redistribute it and/or modify it | |
12 | # under the terms of version 2.1 of the GNU Lesser General Public License as | |
13 | # published by the Free Software Foundation. | |
14 | # | |
15 | # This library is distributed in the hope that it will be useful, but WITHOUT | |
16 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
17 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License | |
18 | # for more details. | |
19 | # | |
20 | # You should have received a copy of the GNU Lesser General Public License | |
21 | # along with this library; if not, see <http://www.gnu.org/licenses>. | |
22 | # | |
23 | ||
24 | import os | |
25 | ||
26 | from distutils.core import setup | |
27 | from distutils.extension import Extension | |
28 | from Cython.Distutils import build_ext | |
29 | ||
30 | setup( | |
31 | name = "seccomp", | |
32 | version = os.environ["VERSION_RELEASE"], | |
33 | description = "Python binding for libseccomp", | |
34 | long_description = "Python API for the Linux Kernel's syscall filtering capability, seccomp.", | |
35 | url = "https://github.com/seccomp/libseccomp", | |
36 | maintainer = "Paul Moore", | |
37 | maintainer_email = "paul@paul-moore.com", | |
38 | license = "LGPLv2.1", | |
39 | platforms = "Linux", | |
40 | cmdclass = {'build_ext': build_ext}, | |
41 | ext_modules = [ | |
42 | Extension("seccomp", ["seccomp.pyx"], | |
43 | # unable to handle libtool libraries directly | |
44 | extra_objects=["../.libs/libseccomp.a"], | |
45 | # fix build warnings, see PEP 3123 | |
46 | extra_compile_args=["-fno-strict-aliasing"]) | |
47 | ] | |
48 | ) |