-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (56 loc) · 1.8 KB
/
setup.py
File metadata and controls
66 lines (56 loc) · 1.8 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
from setuptools import setup, find_packages
import platform
from pathlib import Path
import os
pf = platform.platform()
if pf.__contains__('Windows'):
package_files = [
'cpp/sdk/lib/windows/dexhand.dll',
'cpp/sdk/lib/windows/zlgcan.dll',
'cpp/sdk/lib/windows/kerneldlls/*',
'cpp/sdk/lib/windows/kerneldlls/**/*',
]
else:
arch_dir = 'x86_64' if pf.__contains__('x86') else 'aarch64'
package_files = [
'cpp/sdk/lib/linux/{}/libdexhand.so'.format(arch_dir),
'cpp/sdk/lib/linux/{}/libusbcanfd.so'.format(arch_dir),
'cpp/sdk/lib/linux/{}/libusbcanfd.so.1.0.8'.format(arch_dir),
'cpp/sdk/lib/linux/{}/libusb-1.0.so'.format(arch_dir),
'cpp/sdk/lib/linux/{}/libControlCAN.so'.format(arch_dir)
]
setup(
name="dexhand_sdk_python",
version="1.0.0",
description="Fundamental controlling library of DexHand-021 product series of DexRobot, Inc.",
author="DexRobot",
author_email="contact@dexrobot.com",
url="https://www.dex-robot.com",
packages=find_packages(),
data_files=[
],
package_data={
'dexhand_sdk_python': package_files,
},
include_package_data=True,
exclude_package_data={
},
install_requires=[],
extras_require={
'docs': [
'sphinx>=8.1.3',
'sphinx-rtd-theme>=1.3.0',
'sphinx-autodoc-typehints',
],
},
python_requires='>=3.10',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering :: Robotics',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: Apache Software License',
],
)