-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (27 loc) · 954 Bytes
/
Copy pathsetup.py
File metadata and controls
31 lines (27 loc) · 954 Bytes
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
31
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
#import cython_gsl
import numpy as np
extNames = ['tilecode']
def makeExtension(extName):
extPath = extName + ".pyx"
return Extension(
extName,
[extPath],
libraries=["m",],
#libraries=cython_gsl.get_libraries(), #.append("m"),
#library_dirs=[cython_gsl.get_library_dir()],
include_dirs = [np.get_include(),"..", "../include"], #, cython_gsl.get_cython_include_dir()],
extra_compile_args = ["-O3", "-ffast-math", "-march=native", "-fopenmp"], #, "-std=c++11"
extra_link_args=['-fopenmp'],
)
extensions = [makeExtension(name) for name in extNames]
setup(
name = 'econlearn',
packages =["econlearn"],
#include_dirs = [cython_gsl.get_include()],
cmdclass = {'build_ext': build_ext},
ext_modules = extensions,
)