-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
112 lines (99 loc) · 4.24 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
"""
Emma - Emma Memory and Mapfile Analyser
Copyright (C) 2019 The Emma authors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
"""
# Emma Memory and Mapfile Analyser - setup file
import setuptools # Must be before Cython import
import Emma
with open("README.md", "r") as fp:
long_description = fp.read()
try:
from Cython.Compiler import Options
from Cython.Build import cythonize
Options.docstrings = True
Options.fast_fail = True
extensions = cythonize(
[
setuptools.Extension("Emma.emma_libs.memoryMap", sources=["Emma/emma_libs/memoryMap.py"]),
setuptools.Extension("Emma.emma_libs.memoryEntry", sources=["Emma/emma_libs/memoryEntry.py"])
]
)
except ImportError:
extensions = None
setuptools.setup(
name="pypiemma",
version=Emma.EMMA_VERSION,
license="GPLv3+",
description="Emma Memory and Mapfile Analyser (Emma) | Conduct static (i.e. worst case) memory consumption \
analyses based on arbitrary linker map files. It produces extensive .csv files which are easy to filter and \
post-process. Optionally .html and markdown reports as well as neat figures help you visualising your results.",
long_description=long_description,
long_description_content_type="text/markdown",
maintainer="The Emma Authors",
maintainer_email="[email protected]",
url="https://github.com/bmwcarit/Emma",
zip_safe=False, # Needed for Cython
packages=setuptools.find_namespace_packages(), # Recursively find package files (i.e. sub-folders, ...)
python_requires=Emma.PYTHON_REQ_VERSION,
install_requires=["Pygments",
"Markdown",
"matplotlib",
"pandas",
"pypiscout>=2.0",
"graphviz",
"svgwrite"
],
extras_require={"dev": # Install dev version via `pip3 install pypiemma[dev]`
["gprof2dot",
"pylint",
"mkdocs>=1.1.2", # There was a break in the config files: https://squidfunk.github.io/mkdocs-material/releases/5/
"mkdocs-material>=5.2.1" # There was a break in the config files: https://squidfunk.github.io/mkdocs-material/releases/5/
],
},
entry_points={ # Make Emma available as independent scripts
"console_scripts": [
"emma=Emma.emma:runEmma",
"emma_vis=Emma.emma_vis:runEmmaVis",
"emma_deltas=Emma.emma_vis:runEmmaDeltas"
],
},
ext_modules=extensions, # Needed for Cython
keywords=[
"memory-analysis",
"mapfile",
"memory-analyzer",
"embedded",
"ghs",
"gcc",
"mcu",
"linker",
"visualization",
"reports",
"csv",
"python",
"categorisation",
"memory-consumption",
"mapfile-analyser"
],
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Quality Assurance",
],
)