-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
46 lines (38 loc) · 1.43 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
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import os.path as op
import numpy as np
def readlines(f):
with open(f, encoding='utf-8') as fh:
return fh.readlines()
extensions = [
Extension("mujoco_py_deriv",
["mujoco_py_deriv.pyx",
"mujoco_deriv_struct.c"],
include_dirs=[
np.get_include(),
"{home}/.mujoco/mujoco200/include/".format(home=op.expanduser("~"))],
library_dirs=["{home}/.mujoco/mujoco200/bin/".format(home=op.expanduser("~"))],
extra_compile_args=['-fopenmp'],
libraries=["mujoco200", "glew", "GL", "gomp", "m"]),
]
setup(
name = 'mujoco_py_deriv',
version = '0.2.0',
ext_modules = cythonize(extensions),
package_data = {
'': ['*.xml', '*.stl', '*.so', '*.pyd', '*.pyx'],
},
py_modules=['mujoco_py_deriv_dynamics', 'mujoco_py_deriv_cacheutils',
'mujoco_py_deriv_mujoco_utils'],
setup_requires=readlines('pip-requirements.txt'),
install_requires=readlines('pip-requirements.txt'),
# metadata to display on PyPI
author="Vikas Dhiman",
author_email="wecacuee@github.com",
description=readlines("README.md"),
license="MIT",
keywords="mujoco mujoco_py derivative",
url="https://github.com/wecacuee/mujoco_py_deriv", # project home page, if any
)