-
Notifications
You must be signed in to change notification settings - Fork 38
/
setup.py
41 lines (36 loc) · 1.2 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
import sys
from setuptools import setup
if sys.version_info < (3, 6):
raise Exception("Only Python 3.6 and above is supported.")
try:
from setuptools_rust import Binding, RustExtension
except ImportError:
import subprocess
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools-rust"])
if errno:
print("Please install setuptools-rust package")
raise SystemExit(errno)
else:
from setuptools_rust import Binding, RustExtension
setup_requires = ["setuptools-rust>=0.9.2"]
install_requires = []
setup(
name="gym_chess",
version="0.3.2",
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Rust",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
],
rust_extensions=[
RustExtension("gym_chess.gym_chess", "Cargo.toml", binding=Binding.PyO3, debug=False)
],
packages=["gym_chess"],
zip_safe=False,
install_requires=["gym>=0,<1", "numpy>=1,<2", "six>=1,<2"],
extras_require={"dev": ["pytest", "black"]},
)