forked from vanandrew/XA30_workaround
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (20 loc) · 724 Bytes
/
setup.py
File metadata and controls
26 lines (20 loc) · 724 Bytes
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
#!/usr/bin/env python3
import os
import setuptools
# get the project directory
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
# get scripts path
SCRIPTSPATH = os.path.join(PROJECT_DIR, "xa30_workaround", "scripts")
if __name__ == "__main__":
# setup entry points scripts
entry_points = {
"console_scripts": [
"{0}=xa30_workaround.scripts.{0}:main".format(f.split(".")[0])
for f in os.listdir(SCRIPTSPATH)
if not ("__pycache__" in f or "__init__.py" in f or "common" in f or ".DS_Store" in f)
]
}
# create setup options
setup_options = {"entry_points": entry_points}
# run setup
setuptools.setup(**setup_options) # type: ignore