forked from Trepan-Debuggers/python3-trepan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·58 lines (52 loc) · 2.23 KB
/
setup.py
File metadata and controls
executable file
·58 lines (52 loc) · 2.23 KB
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
#!/usr/bin/env python3
import sys
pygments_version = '>= 2.0.2'
SYS_VERSION = sys.version_info[0:2]
if not ((3, 2) <= SYS_VERSION <= (3, 7)):
mess = "Python Versions 3.2 to 3.7 are supported only in this package."
if ((2, 4) <= SYS_VERSION <= (2, 7)):
mess += ("\nFor your Python, version %s, See trepan2" % sys.version[0:3])
elif SYS_VERSION < (2, 4):
mess += ("\nFor your Python, version %s, see pydb" % sys.version[0:3])
print(mess)
raise Exception(mess)
if SYS_VERSION == (3, 2):
pygments_version = '<= 1.6'
# Get the package information used in setup().
from __pkginfo__ import \
author, author_email, classifiers, \
install_requires, license, long_description, \
modname, py_modules, \
short_desc, VERSION, web, zip_safe
__import__('pkg_resources')
from setuptools import setup, find_packages
packages = find_packages()
setup(
author = author,
author_email = author_email,
classifiers = classifiers,
data_files=[('trepan/processor/command/help',
['trepan/processor/command/help/arange.rst',
'trepan/processor/command/help/command.rst',
'trepan/processor/command/help/examples.rst',
'trepan/processor/command/help/filename.rst',
'trepan/processor/command/help/location.rst',
'trepan/processor/command/help/range.rst',
'trepan/processor/command/help/suffixes.rst',
])],
description = short_desc,
entry_points = {
'console_scripts': [
'trepan3k = trepan.cli:main',
'trepan3kc = trepan.client:main',
]},
install_requires = install_requires,
license = license,
long_description = long_description,
name = modname,
packages = packages,
py_modules = py_modules,
test_suite = 'nose.collector',
url = web,
version = VERSION,
zip_safe = zip_safe)