Initial Work on Cython Code
This commit is contained in:
29
setup_cython.py
Normal file
29
setup_cython.py
Normal file
@@ -0,0 +1,29 @@
|
||||
import numpy
|
||||
from Cython.Build import cythonize
|
||||
from setuptools import Extension, setup
|
||||
|
||||
ext_modules = [
|
||||
Extension(
|
||||
"yoshi_seals.shared.array",
|
||||
[
|
||||
"yoshi_seals/shared/array.pyx",
|
||||
],
|
||||
extra_compile_args=["-O3", "-fopenmp"],
|
||||
extra_link_args=['-fopenmp'],
|
||||
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
|
||||
),
|
||||
Extension(
|
||||
"yoshi_seals.process.process",
|
||||
[
|
||||
"yoshi_seals/process/process.pyx",
|
||||
],
|
||||
extra_compile_args=["-O3", "-fopenmp"],
|
||||
extra_link_args=['-fopenmp'],
|
||||
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
|
||||
),
|
||||
]
|
||||
|
||||
setup(
|
||||
ext_modules=cythonize(ext_modules),
|
||||
include_dirs=[numpy.get_include()]
|
||||
)
|
||||
Reference in New Issue
Block a user