squish/setup.py

20 lines
508 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-18 23:08:49 -04:00
"_packsim",
["src/_packsim.pyx"],
2021-09-19 02:53:43 -04:00
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp']
)
]
setup(
2021-09-18 23:08:49 -04:00
name="packsim",
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()]
)