-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (26 loc) · 891 Bytes
/
setup.py
File metadata and controls
31 lines (26 loc) · 891 Bytes
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
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
PYLIB_VERSION = '%s.%s' % (sys.version_info.major, sys.version_info.minor)
PYMOD_VERSION = '%s_%s' % (sys.version_info.major, sys.version_info.minor)
setup(
name = "pycap",
ext_modules = cythonize([
Extension('pycap%s' % PYMOD_VERSION, ['pycap.pyx'],
libraries = ['pcap', 'python%s' % PYLIB_VERSION],
include_dirs = [
'runtime/include',
'runtime/include/' + 'python%s' % PYLIB_VERSION,
'runtime/include/pcap'],
library_dirs = ['runtime/lib'],
# extra_compile_args = [],
# extra_link_args = []
)],
compiler_directives = {
'language_level': '3',
},
build_dir = 'build',
# gdb_debug = True
)
)