-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
34 lines (26 loc) · 861 Bytes
/
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
from setuptools import setup
import glob
import os
import fnmatch
exec(open('fgcm/_version.py').read())
scripts = ['scripts/runFgcmFitCycle.py',
'scripts/makeFgcmAtmosphereTable.py',
'scripts/listFgcmAtmosphereTables.py',
'scripts/applyFgcmZeropoints.py']
name='fgcm'
def fileList(name, relpath, globstr):
return [relpath + x for x in
fnmatch.filter(os.listdir(name+'/'+relpath+'/'),globstr)]
datafiles = fileList(name,'data/templates/','*.fits')
datafiles.extend(fileList(name,'data/tables/','*.fits'))
setup(
name='fgcm',
version=__version__,
description='Forward Global Calibration Method (FGCM)',
author='Eli Rykoff, Dave Burke',
author_email='[email protected]',
packages=[name],
package_dir = {name: name},
package_data = {name: datafiles},
scripts=scripts
)