doc/examples: use -ansi flag to ensure ANSI C compatibility
[barectf.git] / setup.py
1 #!/usr/bin/env python3
2 #
3 # The MIT License (MIT)
4 #
5 # Copyright (c) 2014-2016 Philippe Proulx <pproulx@efficios.com>
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
25 from setuptools import setup
26 import sys
27
28
29 def _check_python3():
30 # make sure we run Python 3+ here
31 v = sys.version_info
32
33 if v.major < 3:
34 sys.stderr.write('Sorry, barectf needs Python 3\n')
35 sys.exit(1)
36
37
38 _check_python3()
39
40
41 import barectf
42
43
44 setup(name='barectf',
45 version=barectf.__version__,
46 description='Generator of ANSI C code that can write native CTF',
47 author='Philippe Proulx',
48 author_email='eeppeliteloop@gmail.com',
49 license='MIT',
50 keywords='ctf generator tracing bare-metal bare-machine',
51 url='http://barectf.org',
52 packages=[
53 'barectf',
54 ],
55 package_data={
56 'barectf': [
57 'include/*.yaml',
58 ],
59 },
60 install_requires=[
61 'termcolor',
62 'pyyaml',
63 ],
64 entry_points={
65 'console_scripts': [
66 'barectf = barectf.cli:run'
67 ],
68 })
This page took 0.030272 seconds and 4 git commands to generate.