-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
executable file
·105 lines (99 loc) · 3.18 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# -*- coding: utf-8 -*-
# Copyright 2016-2021 Julien Peloton, Giulio Fabbian
# Licensed under the GPL-3.0 License, see LICENSE file for details.
from s4cmb import __version__
from setuptools import find_packages
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
def configuration(parent_package='', top_path=None):
config = Configuration('s4cmb', parent_package, top_path)
config.add_extension(
'scanning_strategy_f',
sources=['s4cmb/scanning_strategy_f.f90'],
libraries=[], f2py_options=[],
extra_f90_compile_args=[
'-ffixed-line-length-1000',
'-O3'
],
extra_compile_args=[''],
extra_link_args=['']
)
config.add_extension(
'detector_pointing_f',
sources=['s4cmb/detector_pointing_f.f90'],
libraries=[], f2py_options=[],
extra_f90_compile_args=[
'-ffixed-line-length-1000',
'-O3'
],
extra_compile_args=[''],
extra_link_args=[''],
)
config.add_extension(
'tod_f',
sources=['s4cmb/tod_f.f90'],
libraries=[], f2py_options=[],
extra_f90_compile_args=[
'-ffixed-line-length-1000',
'-O3'
],
extra_compile_args=[''],
extra_link_args=[''],
)
config.add_extension(
'systematics_f',
sources=['s4cmb/systematics_f.f90'],
libraries=[], f2py_options=[],
extra_f90_compile_args=[
'-ffixed-line-length-1000',
'-O3'],
extra_compile_args=[''],
extra_link_args=[''],
)
return config
if __name__ == "__main__":
# Download url
d_url = 'https://github.com/JulienPeloton/s4cmb/archive/{}.tar.gz'.format(
__version__)
reqs = open('requirements.txt', 'r').read().strip().splitlines()
package_data = {
's4cmb/data': [
'test_data_set_lensedCls.dat',
'ut1utc.ephem'
],
'examples': [
'simple_app.py',
'so_app.py',
'so_crosstalk_app.py',
'so_gain_variation.py',
'simple_parameters.ini',
'so_parameters.ini',
'xpure_parameters.ini',
'so_flat_MC_app.py',
'nersc_cori.batch'
]
}
setup(
configuration=configuration,
version=__version__,
url='https://github.com/JulienPeloton/s4cmb',
download_url=d_url,
license='GPL-3.0',
author='Julien Peloton, Giulio Fabbian',
author_email='[email protected]',
description='Simulate systematic effects in the context of CMB',
platforms='any',
packages=find_packages(),
include_package_data=True,
package_data=package_data,
install_requires=reqs,
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy'
]
)