-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsetup.py
76 lines (67 loc) · 2.8 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
import sys
import os
from setuptools import setup
from Cython.Build import cythonize
import numpy
descr = """Graph-based active learning of agglomeration
Gala implements a suite of hierarchical segmentation algorithms,
including the eponymous Graph-based active learning of agglomeration.
In addition, gala contains implementations of many common segmentation
evaluation functions, such as the variation of information (VI) and the
adjusted Rand index (ARI).
"""
DISTNAME = 'gala'
DESCRIPTION = 'Hierarchical nD image segmentation algorithms'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://gala.readthedocs.org'
LICENSE = 'Janelia (BSD-like)'
DOWNLOAD_URL = 'https://github.com/janelia-flyem/gala'
VERSION = '0.5dev'
PYTHON_VERSION = (3, 6)
INST_DEPENDENCIES = ['cython']
if __name__ == '__main__':
# Massive hack: installing on RTD fails, so we change installation to
# building in-place
on_rtd = (os.environ.get('READTHEDOCS', None) == 'True')
if on_rtd:
sys.argv[1] = 'build_ext'
sys.argv.append('-i')
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Science/Research',
'Programming Language :: Cython',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
packages=['gala', 'gala.features'],
package_data={'gala':
['testdata/*.*', 'testdata/original_grayscales/*']},
install_requires=INST_DEPENDENCIES,
scripts=["bin/gala-segment", "bin/gala-segmentation-stitch",
"bin/gala-segmentation-pipeline",
"bin/gala-train", "bin/gala-test-package",
"bin/gala-pixel", "bin/comparestacks",
"bin/gala-valprob", "bin/gala-auto", "bin/gala-serve"],
ext_modules = cythonize(["gala/*.pyx","gala/features/*.pyx"],
annotate=True),
include_dirs=[numpy.get_include()]
)