-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (49 loc) · 1.54 KB
/
Copy pathsetup.py
File metadata and controls
55 lines (49 loc) · 1.54 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
"""
Setup file for utils.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 4.6.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
from setuptools import setup
import sys
def _platform_scripts():
scripts = [
"bin/customer-common",
"bin/customer-config",
"bin/customer-info",
"bin/customer-init",
"bin/customer-shell",
"bin/customer-update",
"bin/customer-update-submodule",
"bin/otoolbox-commit",
"bin/otoolbox-common",
"bin/otoolbox-doctor",
"bin/otoolbox-init-tests",
"bin/otoolbox-pre-commit",
"bin/otoolbox-pull",
"bin/otoolbox-push",
"bin/otoolbox-push-shielded",
"bin/otoolbox-repo-add-all",
"bin/otoolbox-repo-init",
"bin/otoolbox-sync-shielded",
"bin/otoolbox-tests-by-repo",
]
if sys.platform.startswith("win"):
scripts = [item + ".bat" for item in scripts]
return scripts
if __name__ == "__main__":
try:
setup(
use_scm_version={"version_scheme": "no-guess-dev"},
scripts=_platform_scripts(),
)
except: # noqa
# pylint: disable=W8116
print(
"\n\nAn error occurred while building the project, "
"please ensure you have the most updated version of setuptools, "
"setuptools_scm and wheel with:\n"
" pip install -U setuptools setuptools_scm wheel\n\n"
)
raise