forked from ailab-pku/PyMahjongGB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (17 loc) · 729 Bytes
/
Copy pathsetup.py
File metadata and controls
19 lines (17 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from setuptools import setup, Extension
module = Extension('MahjongGB', sources=[
'MahjongGB/mahjong.cpp',
'MahjongGB/mahjong-algorithm/fan_calculator.cpp',
'MahjongGB/mahjong-algorithm/shanten.cpp'
], language='c++', extra_compile_args = ["-std=c++11"])
setup(name = "PyMahjongGB",
version = "1.2.0",
author = "Yunlong Lu",
author_email = "luyunlong@pku.edu.cn",
description = "A library for Fan Calculation of Mahjong in Chinese Standard Rule.",
long_description = ''.join(open("README.md", encoding = "utf-8").readlines()),
long_description_content_type = "text/markdown",
url = "https://github.com/ailab-pku/MahjongGB",
ext_modules = [module],
python_requires = ">=3.5"
)