-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
72 lines (61 loc) · 2.02 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
# -*- coding: utf-8 -*-
# Copyright (C) 2008-2009 Murphy Lab
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
# Carnegie Mellon University
#
# Written by Luis Pedro Coelho <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# For additional information visit https://murphylab.web.cmu.edu or
# send email to [email protected]
from try_imports import try_imports
from sys import exit
try:
import setuptools
except:
print '''
setuptools not found.
On linux, the package is often called python-setuptools'''
exit(1)
try_imports()
import numpy.distutils.core as numpyutils
execfile('pyslic/pyslic_version.py')
ext_modules = []
packages=setuptools.find_packages()
if 'tests' in packages: packages.remove('tests')
def test_pyversion():
import sys
maj,min,_,_,_ = sys.version_info
if (maj,min) < (2,5):
print "Your Python interpreter is too old for Pyslic.\nUpgrade to 2.5 or newer.\n"
sys.exit(1)
test_pyversion()
install_requires = [
'pymorph>=0.95',
'mahotas>=0.5.2',
]
numpyutils.setup(name='PySLIC',
version=__version__,
description='Subcellular Location Image Classifier',
author='Murphy Lab',
author_email='[email protected]',
url='https://murphylab.cbi.cmu.edu/',
packages=packages,
ext_modules = ext_modules,
install_requires=install_requires,
test_suite='nose.collector',
)