-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
13 lines (10 loc) · 1.96 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from distutils.core import setup
from Cython.Build import cythonize
from Cython.Distutils import build_ext
from distutils.extension import Extension
import numpy
setup(cmdclass = {'build_ext': build_ext},
ext_modules=[ Extension("ML", ["ML.pyx"], libraries=["m"], extra_compile_args = ["-ffast-math"], include_dirs=[numpy.get_include()]), Extension("mcmc", ["mcmc.pyx"], libraries=["m"], extra_compile_args = ["-ffast-math"], include_dirs=[numpy.get_include()]), Extension("config", ["config.pyx"]), Extension("utils", ["utils.pyx"], include_dirs=[numpy.get_include()]), Extension("ML_gamma", ["ML_gamma.pyx"], libraries=["m"], extra_compile_args = ["-ffast-math"], include_dirs=[numpy.get_include()]), Extension("mcmc_gamma", ["mcmc_gamma.pyx"], libraries=["m"], extra_compile_args = ["-ffast-math"], include_dirs=[numpy.get_include()])])
#ext_modules=[ Extension("ML", ["ML.pyx"], libraries=["m"], extra_compile_args = ["-O0"], include_dirs=[numpy.get_include()]), Extension("mcmc", ["mcmc.pyx"], libraries=["m"], extra_compile_args = ["-O0"], include_dirs=[numpy.get_include()]), Extension("config", ["config.pyx"]), Extension("utils", ["utils.pyx"], include_dirs=[numpy.get_include()]), Extension("ML_gamma", ["ML_gamma.pyx"], libraries=["m"], extra_compile_args = ["-O0"], include_dirs=[numpy.get_include()]), Extension("mcmc_gamma", ["mcmc_gamma.pyx"], libraries=["m"], extra_compile_args = ["-O0"], include_dirs=[numpy.get_include()])])
#ext_modules=[ Extension("ML", ["ML.pyx"], libraries=["m"], include_dirs=[numpy.get_include()]), Extension("mcmc", ["mcmc.pyx"], libraries=["m"], include_dirs=[numpy.get_include()]), Extension("config", ["config.pyx"]), Extension("utils", ["utils.pyx"], include_dirs=[numpy.get_include()]), Extension("ML_gamma", ["ML_gamma.pyx"], libraries=["m"], include_dirs=[numpy.get_include()]), Extension("mcmc_gamma", ["mcmc_gamma.pyx"], libraries=["m"], include_dirs=[numpy.get_include()])])
#setup(ext_modules=cythonize(['utils.pyx', "ML.pyx", "config.pyx","mcmc.pyx"]))