-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathsetup.py.in
More file actions
executable file
·49 lines (44 loc) · 1.63 KB
/
setup.py.in
File metadata and controls
executable file
·49 lines (44 loc) · 1.63 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
#
# Enhanced Seccomp Library Python Module Build Script
#
# Copyright (c) 2012-2025 Red Hat <pmoore@redhat.com>
# Author: Paul Moore <paul@paul-moore.com>
# Author: Tom Hromatka <tom.hromatka@oracle.com>
#
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License as
# published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
# for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, see <http://www.gnu.org/licenses>.
#
import os
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
setup(
name = "seccomp",
version = "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_MICRO@",
description = "Python binding for libseccomp",
long_description = "Python API for the Linux Kernel's syscall filtering capability, seccomp.",
url = "https://github.com/seccomp/libseccomp",
maintainer = "Paul Moore",
maintainer_email = "paul@paul-moore.com",
license = "LGPL-2.1",
platforms = "Linux",
ext_modules = cythonize([
Extension("seccomp", ["seccomp.pyx"],
# Unable to handle libtool libraries directly. Also note that
# python wheel builds cannot use files outside of the build
# directory, so libseccomp.a is manually copied into src/python
# by Makefile.am
extra_objects=["libseccomp.a"]),
])
)