-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
65 lines (55 loc) · 2.05 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import os
import argparse
import io
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
from setup_cmake_utils import CMakeExtension, CMakeBuild
from setuptools.command.install import install
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
def read(*names, **kwargs):
return io.open(
os.path.join(ROOT_DIR, *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
long_description = read('README.md')
requirements = [
# 'cmake>=3.18',
]
# scan for all ikfast modules in the src folder
src_path = os.path.join(ROOT_DIR, 'src')
module_names = [f.name for f in os.scandir(src_path) if f.is_dir() and not f.name.startswith('_')]
print('Building ikfast modules: {}'.format(module_names))
ext_modules = [CMakeExtension(m_name) for m_name in module_names]
setup(
name='ikfast_pybind',
version='0.1.1',
license='MIT License',
description='ikfast_pybind is a python binding generation library for the analytic kinematics engine ikfast.',
author='Yijiang Huang',
author_email='[email protected]',
url="https://github.com/yijiangh/ikfast_pybind",
long_description=long_description,
long_description_content_type="text/markdown",
# packages=['ikfast_pybind'],
# package_dir={'': 'src'},
ext_modules=ext_modules,
cmdclass=dict(build_ext=CMakeBuild),
zip_safe=False,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
"License :: OSI Approved :: MIT License",
'Operating System :: Unix',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords=['Robotics', 'kinematics'],
install_requires=requirements,
)