forked from porkminer/CubeSurfer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup64.py
20 lines (17 loc) · 834 Bytes
/
setup64.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import Cython.Compiler.Options
Cython.Compiler.Options.annotate = True
from sys import platform
if platform == "linux" or platform == "linux2":
ext_modules = [Extension("mciso", ["mciso.pyx"], extra_compile_args=['-O2', '-fopenmp', '-ffast-math'], extra_link_args=['-fopenmp'])]
elif platform == "darwin":
ext_modules = [Extension("mciso", ["mciso.pyx"], extra_compile_args=['-O2', '-fopenmp', '-ffast-math', '-I/usr/local/include/'], extra_link_args=['-fopenmp'])]
elif platform == "win32":
ext_modules = [Extension("mciso", ["mciso.pyx"], extra_compile_args=['/O2', '/openmp', '/fp:fast'])]
setup(
name = 'CubeSurfer core script',
cmdclass = {'build_ext': build_ext},
ext_modules = ext_modules
)