fix: stats with 0 requests
[deliverable/lttng-analyses.git] / linuxautomaton / setup.py
CommitLineData
e834eb2f 1#!/usr/bin/env python3
323b3fd6
PP
2#
3# The MIT License (MIT)
4#
5# Copyright (c) 2014 Philippe Proulx <eepp.ca>
6#
7# Permission is hereby granted, free of charge, to any person obtaining a copy
8# of this software and associated documentation files (the "Software"), to deal
9# in the Software without restriction, including without limitation the rights
10# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11# copies of the Software, and to permit persons to whom the Software is
12# furnished to do so, subject to the following conditions:
13#
14# The above copyright notice and this permission notice shall be included in
15# all copies or substantial portions of the Software.
16#
17# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23# THE SOFTWARE.
24
323b3fd6 25
a0129eca
JD
26import sys
27from setuptools import setup
323b3fd6
PP
28
29# make sure we run Python 3+ here
30v = sys.version_info
31if v.major < 3:
32 sys.stderr.write('Sorry, linuxautomaton needs Python 3\n')
33 sys.exit(1)
34
0983ca8c
AB
35# TODO: find a less hackish way to do this.
36if 'install' in sys.argv:
37 try:
38 import babeltrace
39 except ImportError:
40 sys.stderr.write('lttnganalysescli needs the babeltrace package.\n \
41 See https://www.efficios.com/babeltrace for more info.\n')
42 sys.exit(1)
43
323b3fd6
PP
44packages = [
45 'linuxautomaton',
46]
47
a0129eca
JD
48install_requires = [
49]
323b3fd6 50
d97f5cb2
AB
51from linuxautomaton import __version__
52
323b3fd6 53setup(name='linuxautomaton',
d97f5cb2 54 version=__version__,
a0129eca 55 description='Linux kernel FSM using LTTng events',
323b3fd6
PP
56 author='Julien Desfossez',
57 author_email='jdesfossez@efficios.com',
323b3fd6 58 packages=packages)
This page took 0.026107 seconds and 5 git commands to generate.