-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (43 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
42
43
44
45
46
47
48
49
50
51
import numpy as np
from Cython.Build import cythonize
from setuptools import setup
from setuptools.command.build_ext import build_ext
from setuptools.extension import Extension
def get_long_description():
return open("README.md", "r").read()
def get_requirements():
requirements = []
with open("requirements.txt", "r") as f:
for line in f:
requirements.append(line.strip())
return requirements
extensions = [
Extension(
"board",
sources=["board.pyx"],
language="c",
include_dirs=[np.get_include()],
),
Extension(
"mcts",
sources=["mcts.pyx"],
language="c",
include_dirs=[np.get_include()],
),
]
setup(
name="gomoku-alphazero",
version="0.0.0",
keywords=("python", "tensorflow", "deeplearning", "gomoku"),
description="Gomoku AI with AlphaZero",
long_description=get_long_description(),
license="MIT",
url="https://github.com/SigureMo/gomoku-alphazero",
author="SigureMo",
author_email="[email protected]",
platforms="any",
install_requires=get_requirements(),
scripts=[],
ext_modules=cythonize(extensions),
cmdclass={"build_ext": build_ext},
)