-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
54 lines (46 loc) · 2 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
from setuptools import setup, dist
#from setuptools.command.install import install
from setuptools.command.build_ext import build_ext
import setuptools
import os
import glob
import subprocess
import platform
myversion = {}
with open("robotic/version.py") as fp:
exec(fp.read(), myversion)
class BinaryDistribution(dist.Distribution):
def has_ext_modules(foo):
return True
# class CustomCommand(build_ext):
# """Customized setuptools build_ext command"""
# def run(self):
# version = platform.python_version_tuple()[0] + platform.python_version_tuple()[1]
# print('[rai] custom copy lib, python version tag:', version)
# subprocess.check_call('cp -f build/ry.*'+version+'*.so robotic/ry.so', shell=True)
# subprocess.check_call('strip --strip-unneeded robotic/ry.so', shell=True)
# build_ext.run(self)
from pathlib import Path
long_description = (Path(__file__).parent / "README.md").read_text()
setup(
name='robotic',
#packages=['robotic'],
packages=setuptools.find_namespace_packages(),
package_data={
'robotic': ['_robotic.so', 'librai.so', 'meshTool', '_robotic.pyi', 'version.py', 'render.py', 'nlp.py',
'rai-robotModels/*/*', 'rai-robotModels/*/*/*', 'rai-robotModels/*/*/*/*', 'rai-robotModels/*/*/*/*/*', 'rai-robotModels/*/*/*/*/*/*',
'include/rai/*/*', 'include/rai/*/*/*']
},
include_package_data=True,
# cmdclass={ 'build_ext': CustomCommand },
scripts=['rai/bin/urdf2rai.py', 'robotic/ry-view', 'robotic/ry-bot', 'robotic/ry-info', 'robotic/ry-urdf2yaml', 'robotic/ry-meshTool'],
description="Robotic Control Interface & Manipulation Planning Library",
long_description=long_description,
long_description_content_type="text/markdown",
#install_requires=[ 'numpy' ],
distclass=BinaryDistribution,
version=myversion['__version__'],
url='https://github.com/MarcToussaint/robotic/',
author='Marc Toussaint',
author_email='toussaint@tu-berlin.de',
)