forked from JulienPeloton/s4cmb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (80 loc) · 3.77 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
# -*- coding: utf-8 -*-
# Copyright 2017 Julien Peloton
# Licensed under the GPL-3.0 License, see LICENSE file for details.
## A bit wacky... Wheel perhaps?
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__":
# The requirements may be too stringent and older versions
# may be alright. Haven't checked.
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='0.6.0',
url='https://github.com/JulienPeloton/s4cmb',
download_url='https://github.com/JulienPeloton/s4cmb/archive/0.6.0.tar.gz',
license='GPL-3.0',
author='Julien Peloton',
author_email='j.peloton@sussex.ac.uk',
description='Simulate systematic effects in the context of CMB',
long_description=open('README.rst', 'r').read(),
platforms='any',
packages=find_packages(),
include_package_data=True,
package_data=package_data,
install_requires=reqs,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy'
]
)