-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (45 loc) · 1.45 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
from setuptools import setup
import os
import glob
import warnings
import sys
import fnmatch
import subprocess
#from setuptools.command.test import test as TestCommand
from distutils.core import setup
import numpy.distutils.misc_util
if sys.version_info < (3, 0):
sys.exit('Sorry, Python 2 is not supported')
AUTHOR = 'Justin Pierel'
AUTHOR_EMAIL = '[email protected]'
VERSION = '0.2.4'
LICENSE = 'BSD'
URL = ''
def recursive_glob(basedir, pattern):
matches = []
for root, dirnames, filenames in os.walk(basedir):
for filename in fnmatch.filter(filenames, pattern):
matches.append(os.path.join(root, filename))
return matches
PACKAGENAME = 'space_phot'
# Add the project-global data
#data_files = []
pkgdatadir = os.path.join(PACKAGENAME, 'wfc3_photometry')
data_files = []
data_files.extend(recursive_glob(pkgdatadir, '*'))
data_files = [f[len(PACKAGENAME)+1:] for f in data_files]
setup(
name=PACKAGENAME,
setup_requires=['numpy'],
install_requires=['numpy', 'astropy','jwst','sncosmo','webbpsf==1.2.1','corner','nestle',
'stsci.skypac','photutils>=1.9','pytest','drizzlepac','stdatamodels'],
packages=[PACKAGENAME],
package_data={PACKAGENAME: data_files},
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
# include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
# package_data={'sntd': data_files},
# include_package_data=True
)