forked from omarocegueda/registration
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
30 lines (26 loc) · 1.31 KB
/
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
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 19 15:37:17 2013
@author: khayyam
"""
from numpy.distutils.misc_util import get_numpy_include_dirs
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
#ext_modules = [Extension("tensorFieldUtils", ["tensorFieldUtils.pyx"])]
ext_modules = [Extension("tensorFieldUtils", ["tensorFieldUtilsPYX.pyx", "tensorFieldUtilsCPP.cpp", "bitsCPP.cpp", "derivatives.cpp"],include_dirs=get_numpy_include_dirs(), language="c++")]
ext_modules.append(Extension("ecqmmf", ["ecqmmfCYTHON.pyx", "ecqmmfCPP.cpp","bitsCPP.cpp"],include_dirs=get_numpy_include_dirs(), language="c++"))
ext_modules.append(Extension("ecqmmf_reg", ["ecqmmf_regCYTHON.pyx", "ecqmmf_regCPP.cpp", "bitsCPP.cpp", "hungarian.cpp"],include_dirs=get_numpy_include_dirs(), language="c++"))
setup(
name = 'Tensor Field Utilities',
cmdclass = {'build_ext': build_ext},
ext_modules = ext_modules
)
#from numpy.distutils.misc_util import get_numpy_include_dirs
#from distutils.core import setup
#from distutils.extension import Extension
#from Cython.Distutils import build_ext
#setup(
# cmdclass = {'build_ext': build_ext},
# ext_modules = [Extension("ornlm_module", ["ornlm_module.pyx", "ornlm.cpp", "upfirdn.cpp"],include_dirs=get_numpy_include_dirs(), language="c++")]
#)