forked from openai/mujoco-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (28 loc) · 1.08 KB
/
setup.py
File metadata and controls
34 lines (28 loc) · 1.08 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
#!/usr/bin/env python3
import importlib
from distutils.command.build import build as DistutilsBuild
from os.path import abspath, join, dirname, realpath
from setuptools import find_packages, setup
with open(join("mujoco_py", "version.py")) as version_file:
exec(version_file.read())
def read_requirements_file(filename):
req_file_path = '%s/%s' % (dirname(realpath(__file__)), filename)
with open(req_file_path) as f:
return [line.strip() for line in f]
packages = find_packages()
# Ensure that we don't pollute the global namespace.
for p in packages:
assert p == 'mujoco_py' or p.startswith('mujoco_py.')
setup(
name='mujoco-py',
version=__version__, # noqa
author='OpenAI Robotics Team',
author_email='robotics@openai.com',
url='https://github.com/openai/mujoco-py',
packages=packages,
include_package_data=True,
package_dir={'mujoco_py': 'mujoco_py'},
package_data={'mujoco_py': ['generated/*.so']},
install_requires=read_requirements_file('requirements.txt'),
tests_require=read_requirements_file('requirements.dev.txt'),
)