-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (53 loc) · 1.72 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
#!/usr/bin/env python
import glob
import os
from setuptools import setup
# Get the version number
execfile('XtDac/version.py')
# Normal packages
packages = ['XtDac',
'XtDac/BayesianBlocks',
'XtDac/DivideAndConquer',
'XtDac/FixedBinSearch',
'XtDac/ChandraUtils',
'XtDac/utils'
]
# XMM scripts
xmm_scripts = glob.glob(os.path.join('bin','xmm','*.py'))
# Chandra scripts
chandra_scripts = glob.glob(os.path.join('bin','chandra','*.py'))
# General executables
main_executables = glob.glob(os.path.join('bin','*.py'))
setup(
name="XtDac",
packages=packages,
# data_files=[('astromodels/data/functions', glob.glob('astromodels/data/functions/*.yaml'))],
# The __version__ comes from the exec at the top
version=__version__,
description="A blind search algorithm to look for transients in XMM and Chandra data",
author='Giacomo Vianello',
author_email='[email protected]',
url='https://github.com/giacomov/XtDac',
download_url='https://github.com/giacomov/xdtac/archive/v%s' % __version__,
keywords=['Blind search', 'Transients', 'Time-domain astronomy', 'X-rays'],
classifiers=[],
install_requires=[
'numpy >= 1.6',
'astropy >= 1.0',
'scipy>=0.13',
'fitsio',
'pyyaml',
'scikit-learn',
'pyregion',
'numexpr',
'matplotlib',
'iminuit',
'pandas',
'seaborn'],
ext_modules=[],
scripts = xmm_scripts + chandra_scripts + main_executables,
package_data={
'XtDac': ['data/chandra_csc_1.1.pickle.gz', 'data/sample_configuration.yml','data/obs_in_csc1.1.txt'],
},
include_package_data=True,
)