-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (21 loc) · 700 Bytes
/
setup.py
File metadata and controls
27 lines (21 loc) · 700 Bytes
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
import numpy
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize # isort: skip strange build system bug
def read(filename: str) -> str:
with open(filename, "r", encoding="utf8") as fp:
return fp.read()
extensions = [
Extension(
name="poom.pooma.ray_march",
sources=["poom/pooma/ray_march.pyx"],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
),
Extension(name="poom.pooma.math", sources=["poom/pooma/math.pyx"]),
]
setup(
name="poom",
description=read("README.md"),
ext_modules=cythonize(extensions, language_level=3),
include_dirs=numpy.get_include(),
)