-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (25 loc) · 1.26 KB
/
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
import numpy as np
import distutils
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('', parent_package, top_path)
if distutils.version.StrictVersion(np.version.version) > distutils.version.StrictVersion('1.6.1'):
config.add_extension('mll', ['curvspec/mll.f90','curvspec/rc3jj.f'],
libraries=[], f2py_options=[],
extra_f90_compile_args=['-O3'],
extra_compile_args=[''], extra_link_args=[],)
else:
config.add_extension('mll', ['curvspec/mll.f90','curvspec/rc3jj.f'],
libraries=[], f2py_options=[],
extra_compile_args=[], extra_link_args=[],)
return config
if __name__ == "__main__":
from numpy.distutils.core import setup
setup(name='CurvSpec',
configuration=configuration,
version='0.1.0',
author='Federico Bianchini',
author_email='[email protected]',
packages=['curvspec','curvspec.test'],
description='Routines to compute power spectra of curved-sky (Healpix) maps based on the MASTER algorithm',
url='https://github.com/fbianchini/CurvSpec')