-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (29 loc) · 1.01 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
import os
from setuptools import setup, find_packages
setup_py_dir = os.path.dirname(os.path.realpath(__file__))
need_files = []
datadir = "pybullet_object_models"
hh = setup_py_dir + "/" + datadir
for root, dirs, files in os.walk(hh):
for fn in files:
ext = os.path.splitext(fn)[1][1:]
if ext and ext in 'urdf sdf xml stl ini obj mtl png'.split(
):
fn = root + "/" + fn
need_files.append(fn[1 + len(hh):])
print("find_packages() \n {}".format(find_packages()))
print("find_packages() \n {}".format(find_packages('ycb_objects_models_sim')))
setup(
name="pybullet-object-models",
version="0.1",
author="Elena Rampone",
author_email="[email protected]",
description="URDF-SDF models of textured YCB objects for simulation",
license="LGPL",
python_requires='>=3',
keywords="urdf sdf model object simulation pybullet",
package_dir={'': '.'},
packages=find_packages(),
package_data={'pybullet_object_models': need_files},
url="https://github.com/eleramp/pybullet-object-models",
)