forked from trackmania-rl/tmrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (60 loc) · 1.68 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
# standard library imports
import os
import platform
import sys
# third-party imports
from setuptools import find_packages, setup
if sys.version_info < (3, 7):
sys.exit('Sorry, Python < 3.7 is not supported. We use dataclasses that have been introduced in 3.7.')
# if sys.version_info >= (3, 9):
# sys.exit('Sorry, Python > 3.8 is not supported yet, we are working on it at the moment.')
install_req = [
'numpy',
'torch',
'imageio',
'imageio-ffmpeg',
'pandas',
'gym',
'rtgym',
'pyyaml',
'wandb',
'requests',
'opencv-python',
'mss',
'scikit-image',
'inputs',
'keyboard',
'pyvjoy',
'pyautogui',
'pyinstrument',
'yapf',
'isort',
'autoflake',
]
# if platform.system() == "Linux":
# install_req.append('scikit-build')
if platform.system() == "Windows":
install_req.append('pypiwin32')
install_req.append('vgamepad')
# The directory containing this file
HERE = os.path.abspath(os.path.dirname(__file__))
# The text of the README file
with open(os.path.join(HERE, "README.md")) as fid:
README = fid.read()
setup(
name='tmrl',
version="0.9",
description='self-driving car for trackmania',
long_description=README,
long_description_content_type="text/markdown",
keywords='reinforcement learning, self driving cars',
url="https://github.com/trackmania-rl/tmrl",
author='Yann Bouteiller, Edouard Geze, Simon Ramstedt',
author_email='[email protected]',
license="MIT",
install_requires=install_req,
include_package_data=True,
# exclude_package_data={"": ["README.txt"]},
extras_require={},
scripts=[],
packages=find_packages(exclude=("tests", )))