-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
65 lines (57 loc) · 1.75 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 codecs
import os
from pathlib import Path
import setuptools
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
core_requirements = [
# includes bugfix in mujoco_rendering
"gymnasium @ git+https://[email protected]/stepjam/[email protected]",
# pyquaternion doesn't support 2.x yet
"numpy==1.26.*",
"safetensors==0.3.3",
# WARNING: recorded demos might break when updating Mujoco
"mujoco==3.1.5",
# needed for pyMJCF
"dm_control==1.0.19",
"imageio",
"pyquaternion",
"mujoco_utils",
"wget",
"mojo @ git+https://[email protected]/stepjam/[email protected]",
"pyyaml",
"dearpygui",
"pyopenxr",
]
setuptools.setup(
version=get_version("bigym/__init__.py"),
name="bigym",
author="Nikita Cherniadev",
author_email="[email protected]",
packages=setuptools.find_packages(),
python_requires=">=3.10",
install_requires=core_requirements,
package_data={
"": [str(p.resolve()) for p in Path("bigym/envs/xmls").glob("**/*")]
+ [str(p.resolve()) for p in Path("bigym/envs/presets").glob("**/*.yaml")]
+ [str(p.resolve()) for p in Path("vr/viewer/xmls").glob("**/*")]
},
extras_require={
"dev": ["pre-commit", "pytest"],
"examples": [
"moviepy",
"pygame",
"opencv-python",
"matplotlib",
],
},
)