-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (48 loc) · 1.42 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
54
55
56
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from itertools import chain, imap, repeat
from setuptools import setup, find_packages
from os import walk
from os.path import join
# generated by pymod-generator
#
# DO NOT CHANGE THIS METHOD!!
# to include directories in the module see :package_data: below
#
def include_directories(in_dirs):
paths = list()
for directory in in_dirs:
paths.extend(list(chain.from_iterable(imap(join, repeat(root[len('osquery-python') + 1:]), files) for root, _, files in walk(join('osquery-python', directory)))))
return paths
# add list of directories to be included
#
# package_data = include_directories(['dir_to_include', 'other_dir_to_include'])
#
package_data = include_directories([])
# add pypi dependencies here
#
# required_packages = [
# 'boto',
# 'gunicorn',
# 'gevent',
# 'Flask',
# 'Flask-RESTful'
# ]
#
required_packages = []
# list of scripts that should be linked
#
# 'my-cmd=osquery-python.cli:my_cmd_method'
#
scripts = [
'hello-osquery-python=osquery-python.cli:hello'
]
setup(name='osquery-python',
version='0.1',
description="Python bindings for OSQuery",
packages=find_packages(),
package_data={
'osquery-python': package_data
},
install_requires=required_packages,
entry_points=dict(console_scripts=scripts))