-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (28 loc) · 1004 Bytes
/
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
import numpy
from setuptools import Extension
from Cython.Build import cythonize
from setuptools import setup
with open('README.rst', encoding="utf-8") as readme_file:
readme = readme_file.read()
compile_args = ['-std=c99', '-lm', '-Wall', '-Wextra', '-Wno-unused-function', '-DNPY_NO_DEPRECATED_API']
setup(
author='Johannes Buchner',
packages=['lightrayrider'],
ext_modules = cythonize([
Extension(
"lightrayrider.parallel",
["lightrayrider/parallel.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=compile_args + ["-fopenmp", "-DPARALLEL=1"],
extra_link_args=compile_args + ["-fopenmp", "-DPARALLEL=1"],
),
Extension(
"lightrayrider.raytrace",
["lightrayrider/raytrace.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args=compile_args,
extra_link_args=compile_args,
)
]),
long_description=readme,
)