squish/setup.py

20 lines
505 B
Python
Raw Normal View History

2021-09-19 02:53:43 -04:00
from setuptools import Extension, setup
from Cython.Build import cythonize
import numpy
ext_modules = [
Extension(
2021-09-19 02:43:52 -04:00
"_squish",
["src/_squish.pyx"],
2021-09-19 02:53:43 -04:00
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp']
)
]
setup(
2021-09-19 02:43:52 -04:00
name="squish",
2021-09-19 02:53:43 -04:00
ext_modules = cythonize(ext_modules, compiler_directives={
'language_level': 3, 'boundscheck' : False, 'wraparound': False, 'cdivision' : True
}),
include_dirs = [numpy.get_include()]
)