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
39
40
41
42
43
44
45
46
47
48
49
50
51
|
from distutils.core import setup, Extension
import numpy as np
# NOTE: THIS SOFTWARE ONLY WORKS FOR CASA VERSIONS EARLIER THAN 6.x
####################################
# CONFIGURATION
######################
# SET THIS TO TRUE IF YOU WANT TO PLAY WITH FRINGE FITTING:
BUILD_QUINN_FITTER = True
######################
# DIRECTORY TO THE GSL LIBRARIES:
include_gsl_dir = "/usr/include"
#####################################
#################
# SCRIPT STARTS #
#################
if BUILD_QUINN_FITTER:
c_ext = Extension("_uvmultimodel",
["_uvmultimodel.cpp","_QuinnFringe.cpp"],
define_macros = [('QUINN_FITTER','0')],
libraries=['gsl','gslcblas','fftw3'],
extra_compile_args=["-Wno-deprecated","-O3"],
extra_link_args=["-Xlinker", "-export-dynamic"])
else:
c_ext = Extension("_uvmultimodel",
["_uvmultimodel.cpp"],
define_macros = [('QUINN_FITTER','1')],
libraries=['gsl','gslcblas'],
extra_compile_args=["-Wno-deprecated","-O3"])
setup(
ext_modules=[c_ext],
include_dirs=[include_gsl_dir] + [np.get_include()]
)
|