-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
executable file
·78 lines (67 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python
import os
from distutils import sysconfig
from distutils.core import setup
from glob import glob
from os import path
# Get python site-packages directory. This will be correctly resolved
# even in the case we're inside a virtual environment
site_packages_path = sysconfig.get_python_lib()
setup(
# Application
name='cclyzer',
version='1.0',
description=(
"A static analysis framework that uses the LogicBlox "
"Datalog engine for analyzing LLVM bitcode."
),
# Author details
author='George Balatsouras',
author_email='[email protected]',
# Application details
keywords="LLVM datalog static analysis",
license="MIT",
url='https://github.com/plast-lab/llvm-datalog',
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Topic :: Utilities",
],
# Packages to be included
packages = [
'blox', 'cclyzer', 'cclyzer.cli', 'cclyzer.config',
'cclyzer.runtime', 'cclyzer.collect', 'resources', 'resources.logic',
'utils'
],
# Additional package data
package_data = {
'resources.logic' : [
'*/*.lbb',
'*/*/*.lbb',
'*/*.lbp',
'*/*.project',
'*/checksum',
],
'resources' : [
'*.yaml',
],
},
# Additional data outside any python packages
data_files = [
# Add dynamic libraries
(site_packages_path, glob(path.join('lib', '*.so'))),
],
# Source code directory
package_dir = {
'': 'src/main',
'resources.logic': 'build/logic',
},
# Python scripts
scripts = [
'scripts/cclyzer',
'scripts/gen-protobuf-message',
'scripts/project-dependencies',
'scripts/pack-facts.py',
],
)