forked from ejeschke/ginga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
92 lines (87 loc) · 3.21 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#! /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 = "scientific image viewer numpy toolkit astronomy FITS",
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',
# Matplotlib version
'ginga.mplw',
# aggdraw backend
'ginga.aggw',
# OpenCv backend
'ginga.cvw',
# PIL backend
'ginga.pilw',
# Mock version
'ginga.mockw',
# Ginga (wrapped) widgets
'ginga.gw',
# Web backends
'ginga.web', 'ginga.web.pgw',
'ginga.web.pgw.js', 'ginga.web.pgw.templates',
# Common stuff
'ginga.misc', 'ginga.misc.plugins', 'ginga.base',
'ginga.canvas', 'ginga.canvas.types', 'ginga.util',
# Misc
'ginga.icons', 'ginga.doc', 'ginga.tests',
'ginga.fonts',
],
package_data = { 'ginga.icons': ['*.ppm', '*.png'],
'ginga.gtkw': ['gtk_rc'],
#'ginga.doc': get_docs(),
'ginga.doc': ['manual/*.html'],
'ginga.web.pgw': ['templates/*.html', 'js/*.js'],
'ginga.fonts': ['*/*.ttf', '*/*.txt'],
'ginga': ['examples/*/*'],
},
scripts = ['scripts/ginga', 'scripts/grc', 'scripts/gris'],
install_requires = ['numpy>=1.7'],
test_suite = "ginga.tests",
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: C',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
],
cmdclass={'build_py': build_py}
)