forked from multigcs/riocore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (42 loc) · 1.26 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
#!/usr/bin/env python3
#
#
import glob
import os
from setuptools import setup
from riocore.VERSION import VERSION
scripts = []
package_data = {
"riocore": [
"files/*",
"boards/*",
"boards/*/*",
"modules/*",
"configs/*/*",
],
}
packages = ["riocore"]
for script in glob.glob("bin/*"):
scripts.append(script)
for folder in ("riocore/plugins/*", "riocore/generator/*", "riocore/generator/pins/*", "riocore/generator/toolchains/*", "riocore/interfaces/*"):
packages.append(folder.replace("/*", "").replace("/", "."))
for module in glob.glob(folder):
if "__" not in module and not module.endswith(".py"):
module_name = module.replace("/", ".")
packages.append(module_name)
package_data[module_name] = ["*.c", "*.v", "*.png", "*.md"]
setup(
name="riocore",
version=VERSION,
author="Oliver Dippel",
author_email="[email protected]",
packages=packages,
package_data=package_data,
scripts=scripts,
url="https://github.com/multigcs/LinuxCNC-RIO/",
license="LICENSE",
description="riocore",
long_description=open("README.md").read(),
install_requires=["PyQt5>=5.15", "graphviz>=0.20", "pyqtgraph>=0.13.3"],
include_package_data=True,
)