forked from ejeschke/ginga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (62 loc) · 2.13 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
#! /usr/bin/env python
#
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from ginga.version import version
import os
srcdir = os.path.dirname(__file__)
from distutils.command.build_py import build_py
def read(fname):
buf = open(os.path.join(srcdir, fname), 'r').read()
return buf
# not yet working...
def get_docs():
docdir = os.path.join(srcdir, 'doc')
res = []
# ['../../doc/Makefile', 'doc/conf.py', 'doc/*.rst',
# 'doc/manual/*.rst', 'doc/figures/*.png']
return res
setup(
name = "ginga",
version = version,
author = "Eric Jeschke",
author_email = "[email protected]",
description = ("An astronomical image viewer and toolkit."),
long_description = read('README.txt'),
license = "BSD",
keywords = "FITS image viewer astronomy",
url = "http://ejeschke.github.com/ginga",
packages = ['ginga',
# Gtk version
'ginga.cairow', 'ginga.gtkw', 'ginga.gtkw.plugins',
'ginga.gtkw.tests',
# Qt version
'ginga.qtw', 'ginga.qtw.plugins', 'ginga.qtw.tests',
# Tk version
'ginga.tkw', 'ginga.aggw',
# Matplotlib version
'ginga.mplw',
# Common stuff
'ginga.misc', 'ginga.misc.plugins', 'ginga.base',
# Misc
'ginga.util', 'ginga.icons', 'ginga.doc', 'ginga.tests',
],
package_data = { 'ginga.icons': ['*.ppm', '*.png'],
'ginga.gtkw': ['gtk_rc'],
#'ginga.doc': get_docs(),
'ginga.doc': ['manual/*.html'],
},
scripts = ['scripts/ginga', 'scripts/grc'],
install_requires = ['numpy', ],
test_suite = "ginga.tests",
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Scientific/Engineering :: Astronomy",
],
cmdclass={'build_py': build_py}
)