-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (35 loc) · 1.12 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
import os
import glob
from distutils.core import setup
scripts=['gmix-fit-meds',
'gmix-meds-collate',
'gmix-fit-double-psf',
'gmix-fit-meds-stars',
'gmix-meds-make-scripts', # des specific
'gmix-meds-make-oracle', # des specific
'gmix-meds-add-indexes',
'gmix-meds-optimize-table',
'gmix-meds-used-im'] # des specific
scripts=[os.path.join('bin',s) for s in scripts]
conf_files=glob.glob('config/*.yaml')
runconf_files=glob.glob('runconfig/*.yaml')
data_files=[]
for f in conf_files:
d=os.path.dirname(f)
n=os.path.basename(f)
d=os.path.join('share','gmix-meds-config')
data_files.append( (d,[f]) )
for f in runconf_files:
d=os.path.dirname(f)
n=os.path.basename(f)
d=os.path.join('share','gmix-meds-runconfig')
data_files.append( (d,[f]) )
setup(name="gmix_meds",
version="0.1.0",
description="Run gaussian mixtures on MEDS files",
license = "GPL",
author="Erin Scott Sheldon",
author_email="erin.sheldon@gmail.com",
scripts=scripts,
data_files=data_files,
packages=['gmix_meds'])