-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·150 lines (115 loc) · 3.67 KB
/
setup.py
File metadata and controls
executable file
·150 lines (115 loc) · 3.67 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# -*- coding: utf-8 -*-
"""Distribution 'platformids' provides the enumeration of operating systems,
and their releases.
The following local options are added.
--sdk:
Requires sphinx, epydoc, and dot-graphics.
--no-install-required: Suppresses installation dependency checks,
requires appropriate PYTHONPATH.
--offline: Sets online dependencies to offline, or ignores online
dependencies.
"""
from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import setuptools
import yapyutils.help
__author__ = 'Arno-Can Uestuensoez'
__author_email__ = 'acue_sf2@sourceforge.net'
__license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints"
__copyright__ = "Copyright (C) 2015-2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez"
__uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9"
__vers__ = [0, 1, 39, ]
__version__ = "%02d.%02d.%03d" % (__vers__[0], __vers__[1], __vers__[2],)
__release__ = "%d.%d.%d" % (__vers__[0], __vers__[1], __vers__[2],) + '-rc0'
__status__ = 'beta'
__sdk = False
"""Set by the option "--sdk". Controls the installation environment."""
if '--sdk' in sys.argv:
__sdk = True
sys.argv.remove('--sdk')
# required for various interfaces, thus just do it
_mypath = os.path.dirname(os.path.abspath(__file__))
"""Path of this file."""
sys.path.insert(0, os.path.abspath(_mypath))
_name = 'platformids'
__pkgname__ = "platformids"
_version = "%d.%d.%d" % (__vers__[0], __vers__[1], __vers__[2],)
_packages = [
'platformids',
'platformids.custom',
'platformids.dist',
'platformids.embed',
'platformids.net',
]
_scripts = [
"scripts/rtplatformids.py",
]
_install_requires = [
'pythonids >= 0.1.30',
'yapyutils >= 0.1.20',
'sourceinfo >= 0.1.30',
]
if __sdk: # pragma: no cover
try:
import sphinx_rtd_theme # @UnusedImport
except:
sys.stderr.write(
"WARNING: Cannot import package 'sphinx_rtd_theme', cannot create local 'ReadTheDocs' style.")
_install_requires.extend(
[
'sphinx >= 1.6',
'epydoc >= 3.0',
]
)
_test_suite = "tests.CallCase"
__no_install_requires = False
if '--no-install-requires' in sys.argv:
__no_install_requires = True
sys.argv.remove('--no-install-requires')
__offline = False
if '--offline' in sys.argv:
__offline = True
__no_install_requires = True
sys.argv.remove('--offline')
# Help on addons.
if '--help-platformids' in sys.argv:
yapyutils.help.usage('setup')
sys.exit(0)
if __no_install_requires:
print("#")
print("# Changed to offline mode, ignore install dependencies completely.")
print("# Requires appropriate PYTHONPATH.")
print("# Ignored dependencies are:")
print("#")
for ir in _install_requires:
print("# " + str(ir))
print("#")
_install_requires = []
setuptools.setup(
author=__author__,
author_email=__author_email__,
description="Enumeration of operating systems and their releases.",
download_url="https://sourceforge.net/projects/platformids/files/",
entry_points={
'enumerateit.commands': [
'rtplatformids = platformids.build_apidoc:BuildApidocX',
]
},
install_requires=_install_requires,
license=__license__,
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
name=_name,
packages=_packages,
scripts=_scripts,
url='https://sourceforge.net/projects/platformids/',
version=_version,
zip_safe=False,
)
if '--help' in sys.argv:
print()
print("Help on provided package extensions by " + str(_name))
print(" --help-" + str(_name))
print()
sys.exit(0)