forked from FrankAbelbeck/linuxfd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (36 loc) · 1.88 KB
/
setup.py
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
#!/usr/bin/env python
r"""This file is part of linuxfd (Python wrapper for eventfd/signalfd/timerfd)
Copyright (C) 2014-2017 Frank Abelbeck <[email protected]>
linuxfd is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
linuxfd 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 linuxfd. If not, see <http://www.gnu.org/licenses/>."""
from distutils.core import setup, Extension
gccargs = ["-Wall"]#,"-Wextra"]
eventfd_c = Extension("eventfd_c", sources=["source/eventfd_c.c"], extra_compile_args=gccargs)
signalfd_c = Extension("signalfd_c", sources=["source/signalfd_c.c"], extra_compile_args=gccargs)
timerfd_c = Extension("timerfd_c", sources=["source/timerfd_c.c"], extra_compile_args=gccargs)
inotify_c = Extension("inotify_c", sources=["source/inotify_c.c"], extra_compile_args=gccargs)
longdescription = """linuxfd provides a Python interface for the Linux system calls 'eventfd',
'signalfd', 'timerfd' and 'inotify'."""
setup(
name = "linuxfd",
version = "1.4.4",
description = "Python bindings for the Linux eventfd/signalfd/timerfd/inotify syscalls",
long_description = longdescription,
author = "Frank Abelbeck",
author_email = "[email protected]",
url = "https://abelbeck.wordpress.com",
license = "LGPL",
platforms = "Linux",
package_dir = {"linuxfd":"source"},
packages = ["linuxfd"],
ext_package = "linuxfd",
ext_modules = [eventfd_c,signalfd_c,timerfd_c,inotify_c]
)