2020-07-14 21:26:01 +00:00
|
|
|
import numpy
|
|
|
|
|
|
|
|
|
|
from Cython.Build import cythonize
|
|
|
|
|
from distutils.core import Extension, setup # pylint: disable=import-error,no-name-in-module
|
2020-10-21 06:33:00 -07:00
|
|
|
from common.cython_hacks import BuildExtWithoutPlatformSuffix
|
2020-07-14 21:26:01 +00:00
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name='Cython transformations wrapper',
|
|
|
|
|
cmdclass={'build_ext': BuildExtWithoutPlatformSuffix},
|
|
|
|
|
ext_modules=cythonize(
|
2020-10-21 06:33:00 -07:00
|
|
|
Extension(
|
|
|
|
|
"transformations",
|
|
|
|
|
sources=["transformations.pyx"],
|
|
|
|
|
language="c++",
|
|
|
|
|
extra_compile_args=["-std=c++1z", "-Wno-cpp"],
|
|
|
|
|
include_dirs=[numpy.get_include()],
|
|
|
|
|
),
|
|
|
|
|
nthreads=4,
|
2020-07-14 21:26:01 +00:00
|
|
|
)
|
2020-10-21 06:33:00 -07:00
|
|
|
)
|