forked from janelia-flyem/gala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (53 loc) · 2.11 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
from __future__ import absolute_import
#from distutils.core import setup
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 = '[email protected]'
URL = 'https://gala.readthedocs.org'
LICENSE = 'Janelia (BSD-like)'
DOWNLOAD_URL = 'https://github.com/janelia-flyem/gala'
VERSION = '0.3dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
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,
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"],
ext_modules = cythonize(["gala/*.pyx","gala/features/*.pyx"],
annotate=True),
include_dirs=[numpy.get_include()]
)