-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
34 lines (29 loc) · 1.63 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
31
32
33
import setuptools
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
with open("README.md", "r") as fh:
long_description = fh.read()
def configuration(parent_package='', top_path=''):
config = Configuration('', parent_package, top_path)
# try extra_link_args = ['-lgomp', '-qopenmp'] was useful at some point for intel compilers (Kareem)
config.add_extension('plancklens.wigners.wigners', ['plancklens/wigners/wigners.f90'],
extra_link_args=['-lgomp'], libraries=['gomp'], extra_f90_compile_args=['-fopenmp', '-w'])
config.add_extension('plancklens.n1.n1f', ['plancklens/n1/n1f.f90'],
extra_link_args=['-lgomp'], libraries=['gomp'], extra_f90_compile_args=['-fopenmp', '-w'])
return config
setup(
name='plancklens',
version='0.0.1',
packages=['plancklens', 'plancklens.n1', 'plancklens.filt', 'plancklens.sims', 'plancklens.helpers',
'plancklens.qcinv', 'plancklens.wigners', 'tests'],
data_files=[('plancklens/data/cls', ['plancklens/data/cls/FFP10_wdipole_lensedCls.dat',
'plancklens/data/cls/FFP10_wdipole_lenspotentialCls.dat',
'plancklens/data/cls/FFP10_wdipole_params.ini'])],
url='https://github.com/carronj/plancklens',
author='Julien Carron',
author_email='[email protected]',
description='Planck lensing python pipeline',
install_requires=['numpy', 'healpy', 'six'], #removed mpi4py for travis tests
requires=['numpy', 'healpy', 'six', 'scipy'],
long_description=long_description,
configuration=configuration)