-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (19 loc) · 795 Bytes
/
setup.py
File metadata and controls
23 lines (19 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
import numpy as np
import sys
import hooks
from numpy.distutils.core import setup
from numpy.distutils.extension import Extension
hooks.F90_COMPILE_ARGS_GFORTRAN += ['-fpack-derived','-g']
hooks.F90_COMPILE_ARGS_IFORT += ['-align norecords','-g']
if sys.platform == 'darwin':
hooks.F77_COMPILE_OPT_GFORTRAN = ['-O2']
hooks.F90_COMPILE_OPT_GFORTRAN = ['-O2']
ext_modules = [Extension('qubic._flib',
sources=['flib/polarization.f90.src',
'flib/xpol.f90'],
include_dirs=['.', np.get_include()],
libraries=['gomp',
('fmod', {'sources': ['flib/wig3j.f']})])]
setup(cmdclass=hooks.cmdclass,
ext_modules=ext_modules)