-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (32 loc) · 1018 Bytes
/
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
31
32
33
34
35
36
37
38
# setup.py - Distutils script to build the the Cython extension of the model
#
# Author: Stefan Fuertinger [[email protected]]
# Created: June 25 2014
# Last modified: <2017-09-15 16:46:14>
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import platform
# Because think different...
if platform.system() == 'Darwin':
ext_modules1=[
Extension("the_model",
["the_model.pyx"],
libraries=["m"],
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'],
include_dirs=[numpy.get_include()])
]
else:
ext_modules1=[
Extension("the_model",
["the_model.pyx"],
libraries=["m","blas"], # Unix specific
include_dirs=[numpy.get_include()])
]
# Build stuff
setup(
name = "The_Model",
cmdclass = {"build_ext": build_ext},
ext_modules = ext_modules1
)