forked from takuseno/d3rlpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (65 loc) · 3.01 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
72
import os
from setuptools import setup, Extension, find_packages
os.environ['CFLAGS'] = '-std=c++11'
# get __version__ variable
here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'd3rlpy', '_version.py')).read())
if __name__ == "__main__":
from numpy import get_include
from Cython.Build import cythonize
# setup Cython build
ext = Extension('d3rlpy.dataset',
sources=['d3rlpy/dataset.pyx'],
include_dirs=[get_include(), 'd3rlpy/cpp/include'],
language='c++',
extra_compile_args=["-std=c++11", "-O3", "-ffast-math"],
extra_link_args=["-std=c++11"])
ext_modules = cythonize([ext],
compiler_directives={
'linetrace': True,
'binding': True
})
# main setup
setup(name="d3rlpy",
version=__version__,
description="An offline deep reinforcement learning library",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/takuseno/d3rlpy",
author="Takuma Seno",
author_email="[email protected]",
license="MIT License",
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: POSIX :: Linux",
'Operating System :: Microsoft :: Windows',
"Operating System :: MacOS :: MacOS X"],
install_requires=["torch",
"scikit-learn",
"tensorboardX",
"tqdm",
"h5py",
"gym",
"click",
"typing-extensions",
"scipy",
"structlog",
"colorama"],
packages=find_packages(exclude=["tests*"]),
python_requires=">=3.7.0",
zip_safe=False,
package_data={'d3rlpy': ['*.pyx',
'*.pxd',
'*.h',
'*.pyi',
'py.typed']},
ext_modules=ext_modules,
entry_points={'console_scripts': ['d3rlpy=d3rlpy.cli:cli']})