-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
executable file
·53 lines (51 loc) · 1.66 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
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
from glob import glob
from setuptools import Extension, find_packages, setup
setup(
name='sniffles',
version='3.4.3',
description='Sniffles pcap generator',
long_description='Packet capture generator for IDS evaluation',
maintainer='Victor C. Valgenti',
maintainer_email='vvalgenti@petabi.com',
url='https://github.com/petabi/sniffles',
packages=find_packages('src'),
package_dir={'': 'src'},
entry_points={
'console_scripts': [
'sniffles = sniffles.sniffles:main',
'rulegen = sniffles.rand_rule_gen:main',
'regexgen = sniffles.regex_generator:main'
],
'gui_scripts': [
],
},
data_files=[
('share/doc/sniffles', ['README.md', 'LICENSE']),
('share/examples/sniffles',
['examples/example1.xml',
'examples/example2.xml',
'examples/hdr_features_complex.txt',
'examples/hdr_features_simple.txt',
'examples/mac_definition_file.txt',
'examples/re_features_complex.txt',
'examples/re_features_simple.txt',
'examples/sniffles_example_config.txt']),
],
ext_modules=[
Extension(
'sniffles.pcrecomp',
sources=glob('src/sniffles/*.c'),
depends=glob('src/sniffles/*.h'),
extra_compile_args=[
'-DLINK_SIZE=2',
'-DPARENS_NEST_LIMIT=250',
'-DNEWLINE=10',
'-DMAX_NAME_COUNT=10000',
'-DMAX_NAME_SIZE=32'])],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=[
'sortedcontainers',
],
)