forked from HorizonRobotics/alf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (69 loc) · 2.42 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
66
67
68
69
70
71
# Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup, find_packages
from pybind11.setup_helpers import Pybind11Extension, build_ext
setup(
name='alf',
version='0.1.0',
python_requires='>=3.8.0',
install_requires=[
'absl-py==2.1.0',
'atari_py==0.2.9',
# used by Box2D-based environments (e.g. BipedalWalker, LunarLander)
'box2d-py',
'cpplint',
'clang-format==9.0',
'fasteners==0.19',
'gin-config@git+https://github.com/HorizonRobotics/gin-config.git',
'gym==0.15.4',
'gym3==0.3.3',
'h5py==3.10.0',
'matplotlib==3.8.2',
'numpy==1.26',
'opencv-python==4.9.0.80',
'pathos==0.2.4',
'pillow>=8',
# 'procgen>=0.10.4',
'protobuf==3.20.2',
'psutil==5.9.8',
'pybullet==2.5.0',
'pyglet==1.3.2', # higher version breaks classic control rendering
'rectangle-packer==2.0.2',
'sphinx==3.0',
'sphinx-autobuild',
'sphinx-autodoc-typehints@git+https://github.com/hnyu/sphinx-autodoc-typehints.git',
'sphinxcontrib-napoleon==0.7',
'sphinx-rtd-theme==0.4.3', # used to build html docs locally
'tensorboard==2.15.2',
'threadpoolctl==3.2.0',
'torch==2.2.0',
'torchvision==0.17.0',
'torchtext==0.17.0',
'cnest',
], # And any other dependencies alf needs
ext_modules=[
Pybind11Extension(
'alf.environments._penv',
sources=['alf/environments/parallel_environment.cpp'],
extra_compile_args=[
'-O3', '-Wall', '-std=c++17', '-fPIC', '-fvisibility=hidden'
])
],
cmdclass={'build_ext': build_ext},
extras_require={
'metadrive': ['metadrive-simulator==0.2.5.1', ],
},
package_data={'': ['*.gin']},
packages=find_packages(),
)