-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
executable file
·77 lines (69 loc) · 2.1 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
#!/usr/bin/env python
"""
distutils setup (setup.py).
This is just boilerplate code, since we do like to try to keep data separate
from code as much as possible. The customizable information really comes
from file __pkginfo__.py.
"""
import os, sys
if not ((2, 4) <= sys.version_info[0:2] < (3, 0)):
mess = "Only Python Versions 2.4 to 2.7 are supported in this package."
if (3, 2) <= sys.version_info[0:2] < (3, 7):
mess += "\nFor your Python, version %s, see trepan3k" % sys.version[0:3]
elif sys.version_info[0:2] < (2, 6):
mess += "\nFor your Python, version %s, see pydbgr" % sys.version[0:3]
raise Exception(mess)
elif ((2, 4) <= sys.version_info[0:2] < (2, 6)) and not os.path.exists(
"gitbranch-master"
):
raise Exception("You have the wrong code or git branch for Python 2.4, 2.5")
# Get the package information used in setup().
from __pkginfo__ import (
author,
author_email,
classifiers,
entry_points,
install_requires,
license,
long_description,
modname,
packages,
py_modules,
short_desc,
__version__,
web,
zip_safe,
)
__import__("pkg_resources")
from setuptools import setup
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=entry_points,
install_requires=install_requires,
license=license,
long_description=long_description,
py_modules=py_modules,
name=modname,
packages=packages,
test_suite="nose.collector",
url=web,
version=__version__,
zip_safe=zip_safe,
)