forked from qubicsoft/qubic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (51 loc) · 2.07 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
#!/usr/bin/env python
import numpy as np
import os
import sys
import hooks
from numpy.distutils.core import setup
from numpy.distutils.extension import Extension
VERSION = '4.5'
name = 'qubic'
long_description = open('README.rst').read()
keywords = 'scientific computing'
platforms = 'MacOS X,Linux,Solaris,Unix,Windows'
delattr(os, 'link') # force sdist to copy files
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=['src/polarization.f90.src',
'src/xpol.f90'],
include_dirs=['.', np.get_include()],
libraries=['gomp',
('fmod', {'sources': ['src/wig3j.f']})])]
setup(name=name,
version=hooks.get_version(name, VERSION),
description='Simulation and map-making tools for the QUBIC experiment.',
long_description=long_description,
url='',
author='Pierre Chanial',
author_email='[email protected]',
install_requires=['progressbar',
'pyoperators>=0.13.2',
'pysimulators>=1.0.8',
'healpy>=0.6.1',
'pyYAML'],
packages=['qubic', 'qubic/calfiles', 'qubic/data', 'qubic/io'],
package_data={'qubic': ['calfiles/*', 'data/*', 'scripts/*py']},
platforms=platforms.split(','),
keywords=keywords.split(','),
cmdclass=hooks.get_cmdclass(),
ext_modules=ext_modules,
license='CeCILL-B',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2 :: Only',
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy'])