2017-05-17 14:41:46 -07:00
|
|
|
from setuptools import setup, find_packages
|
2017-05-25 14:40:26 -07:00
|
|
|
import sys
|
2017-05-17 14:41:46 -07:00
|
|
|
|
2017-05-25 14:40:26 -07:00
|
|
|
if sys.version_info.major != 3:
|
2018-02-14 21:42:22 -08:00
|
|
|
print('This Python is only compatible with Python 3, but you are running '
|
|
|
|
'Python {}. The installation will likely fail.'.format(sys.version_info.major))
|
2017-05-17 14:41:46 -07:00
|
|
|
|
2017-07-20 08:52:35 -07:00
|
|
|
|
2018-08-15 10:34:38 -07:00
|
|
|
extras = {
|
|
|
|
'test': [
|
|
|
|
'filelock',
|
|
|
|
'pytest'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
all_deps = []
|
|
|
|
for group_name in extras:
|
|
|
|
all_deps += extras[group_name]
|
|
|
|
|
|
|
|
extras['all'] = all_deps
|
|
|
|
|
2017-05-17 14:41:46 -07:00
|
|
|
setup(name='baselines',
|
|
|
|
packages=[package for package in find_packages()
|
|
|
|
if package.startswith('baselines')],
|
|
|
|
install_requires=[
|
2018-02-26 17:40:16 +01:00
|
|
|
'gym[mujoco,atari,classic_control,robotics]',
|
2017-05-17 14:41:46 -07:00
|
|
|
'scipy',
|
|
|
|
'tqdm',
|
|
|
|
'joblib',
|
|
|
|
'dill',
|
|
|
|
'progressbar2',
|
2017-07-27 08:10:59 -07:00
|
|
|
'mpi4py',
|
2018-01-31 10:43:17 +01:00
|
|
|
'cloudpickle',
|
2018-02-26 17:40:16 +01:00
|
|
|
'click',
|
2018-05-14 10:52:19 -07:00
|
|
|
'opencv-python'
|
2017-05-17 14:41:46 -07:00
|
|
|
],
|
2018-08-15 10:34:38 -07:00
|
|
|
extras_require=extras,
|
2018-02-14 21:42:22 -08:00
|
|
|
description='OpenAI baselines: high quality implementations of reinforcement learning algorithms',
|
|
|
|
author='OpenAI',
|
2017-05-17 14:41:46 -07:00
|
|
|
url='https://github.com/openai/baselines',
|
2018-02-14 21:42:22 -08:00
|
|
|
author_email='gym@openai.com',
|
2018-02-26 17:40:16 +01:00
|
|
|
version='0.1.5')
|
2018-08-21 16:51:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
# ensure there is some tensorflow build with version above 1.4
|
|
|
|
try:
|
|
|
|
from distutils.version import StrictVersion
|
|
|
|
import tensorflow
|
|
|
|
assert StrictVersion(tensorflow.__version__) >= StrictVersion('1.4.0')
|
|
|
|
except ImportError:
|
|
|
|
assert False, "TensorFlow needed, of version above 1.4"
|