forked from glue-viz/glue-vispy-viewers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·59 lines (47 loc) · 2 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
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
from setuptools import setup, find_packages
entry_points = """
[glue.plugins]
vispy_volume=glue_vispy_viewers.volume:setup
vispy_scatter=glue_vispy_viewers.scatter:setup
#vispy_isosurface=glue_vispy_viewers.isosurface:setup
"""
with open('glue_vispy_viewers/version.py') as infile:
exec(infile.read())
with open('README.rst') as infile:
LONG_DESCRIPTION = infile.read()
# Define package data for our plugin
package_data = {'glue_vispy_viewers.volume': ['*.ui'],
'glue_vispy_viewers.common': ['*.ui', '*.png'],
'glue_vispy_viewers.isosurface': ['*.ui'],
'glue_vispy_viewers.scatter': ['*.ui'],
'glue_vispy_viewers.tests.data': ['*.glu']}
# Include data for bundled version of VisPy.
package_data['glue_vispy_viewers.extern.vispy'] = [os.path.join('io', '_data', '*'),
os.path.join('html', 'static', 'js', '*'),
os.path.join('app', 'tests', 'qt-designer.ui')]
for subpackage in ['antialias', 'arrowheads', 'arrows', 'collections',
'colormaps', 'lines', 'markers', 'math', 'misc',
'transforms']:
package_data['glue_vispy_viewers.extern.vispy.glsl.' + subpackage] = ['*.vert', '*.frag', '*.glsl']
install_requires = ['numpy',
'pyopengl',
'glue-core>=0.11',
'qtpy',
'scipy',
'astropy>=1.1']
setup(name='glue-vispy-viewers',
version=__version__,
description='Vispy-based viewers for Glue',
long_description=LONG_DESCRIPTION,
url="https://github.com/glue-viz/glue-3d-viewer",
author='Penny Qian, Maxwell Tsai, and Thomas Robitaille',
author_email='glueviz@gmail.com',
packages = find_packages(),
package_data=package_data,
entry_points=entry_points,
install_requires=install_requires
)