33 lines
807 B
Python
33 lines
807 B
Python
from __future__ import annotations
|
|
|
|
from setuptools import Extension, setup
|
|
|
|
try:
|
|
from Cython.Build import cythonize
|
|
except ImportError as exc: # pragma: no cover
|
|
raise RuntimeError("Cython is required to build coolrl-lost-cities") from exc
|
|
|
|
|
|
extensions = cythonize(
|
|
[
|
|
Extension(
|
|
"coolrl_lost_cities.games.classic.game",
|
|
["src/coolrl_lost_cities/games/classic/game.pyx"],
|
|
),
|
|
Extension(
|
|
"coolrl_lost_cities.games.classic.engines.fast",
|
|
["src/coolrl_lost_cities/games/classic/engines/fast.pyx"],
|
|
),
|
|
],
|
|
language_level=3,
|
|
compiler_directives={
|
|
"boundscheck": False,
|
|
"wraparound": False,
|
|
"cdivision": True,
|
|
"initializedcheck": False,
|
|
},
|
|
)
|
|
|
|
|
|
setup(ext_modules=extensions)
|