-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
145 lines (127 loc) · 6.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
"""MSAView - Fast and flexible visualisation of multiple sequence alignments.
Copyright (c) 2011 Joel Hedlund.
Contact: Joel Hedlund <[email protected]>
MSAView is a modular, configurable and extensible package for analysing and
visualising multiple sequence alignments and sequence features. It can import
and display data from online sources, and it can launch external viewers for
additional details, such as structures and database pages. MSAView is highly
configurable and has a user extendable preset library, as well as a plugin
architecture which allows for straightforward extension of the program's
capabilities.
MSAVIew has a fast graphical user interface that remains responsive even for
large datasets, as well as a powerful command line client which allows the user
to generate consistent views for hundreds of protein families at a time. All
the program's functionality is also directly accessible via the python API for
more advanced operations.
If you have problems with this package, please contact the author.
Copyright
=========
The MIT License
Copyright (c) 2011 Joel Hedlund.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
import distutils.command.install_scripts
from distutils.core import Extension, setup
import shutil
packages = ['msaview',
'msaview_ui',
'msaview_plugin_backbone',
'msaview_plugin_biomart',
'msaview_plugin_clustal',
'msaview_plugin_cscore',
'msaview_plugin_disopred',
'msaview_plugin_ensembl',
'msaview_plugin_hmmer',
'msaview_plugin_nexus',
'msaview_plugin_pdb',
'msaview_plugin_pfam',
'msaview_plugin_pymol',
'msaview_plugin_stockholm',
'msaview_plugin_substitution_matrix',
'msaview_plugin_uniprot',
]
for name in packages:
getattr(__import__(name), '__version__')
versions = dict((name, getattr(__import__(name), '__version__')) for name in packages)
provides = ["%s (%s)" % (name, versions[name]) for name in packages]
__version__ = versions['msaview']
class my_install(distutils.command.install_scripts.install_scripts):
def run(self):
distutils.command.install_scripts.install_scripts.run(self)
for script in self.get_outputs():
if script.endswith(".py"):
shutil.move(script, script[:-3])
setup(name='msaview',
version=__version__,
description='Fast and flexible visualisation of multiple sequence alignments.',
platforms='OS Independent',
author='Joel Hedlund',
author_email='[email protected]',
url='https://sourceforge.net/projects/msaview/',
download_url='https://sourceforge.net/projects/msaview/',
packages=packages,
provides=provides,
scripts=['msaview.py'],
ext_modules=[Extension('msaview._renderers',
['msaview/renderers.cpp'],
extra_compile_args=['-O3'],
extra_link_args=['-Wl,-O3'],
),
Extension('msaview_plugin_cscore._cscore',
['msaview_plugin_cscore/cscore.cpp',
'msaview_plugin_substitution_matrix/substitution_matrix.cpp',
],
include_dirs=['msaview_plugin_substitution_matrix'],
extra_compile_args=['-O3'],
extra_link_args=['-Wl,-O3'],
),
Extension('msaview_plugin_substitution_matrix._substitution_matrix',
['msaview_plugin_substitution_matrix/substitution_matrix.i',
'msaview_plugin_substitution_matrix/substitution_matrix.cpp',
],
swig_opts=['-c++'],
extra_compile_args=['-O3'],
extra_link_args=['-Wl,-O3'],
),
],
package_data={'msaview': ['data/*.mxml',
'data/*.txt',
],
'msaview_plugin_cscore': ['*.mxml'],
'msaview_plugin_ensembl': ['*.mxml'],
'msaview_plugin_pymol': ['*.mxml'],
'msaview_plugin_uniprot': ['*.mxml'],
'msaview_ui': ['msaview_ui.docs'],
},
license=open('LICENSE.txt').read(),
long_description='\n' + open('README.txt').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: C++',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
cmdclass = {"install_scripts": my_install}
)