-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
83 lines (74 loc) · 2.37 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
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import os
from setuptools import setup, find_packages, Extension
import versioneer
malis = False # Set to True to enable malis build.
ext_modules = []
if malis:
print('Trying to build the malis extension.\n'
'Requires a C++ compiler, Numpy, Cython and Boost to be installed.')
import numpy as np
ext_modules = [
Extension(
"elektronn2.malis._malis", # Note: _malis_lib.cpp requires boost!
sources=[
"elektronn2/malis/_malis.pyx",
"elektronn2/malis/_malis_lib.cpp",
],
include_dirs=[
'malis/',
np.get_include(),
],
language='c++'
),
]
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="elektronn2",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(),
scripts=[
'scripts/elektronn2-train',
'scripts/elektronn2-profile',
],
ext_modules=ext_modules,
install_requires=[
'numpy>=1.8',
'scipy>=0.14',
'matplotlib>=1.4',
'h5py>=2.2',
'theano>=0.8,<0.10', # ELEKTRONN2 relies on the old Theano backend that has been removed now
'future>=0.15',
'tqdm>=4.5',
'colorlog>=2.7',
'prompt_toolkit>=1.0.3,<2',
'jedi>=0.9.0',
'pydotplus',
'seaborn',
'scikit-learn',
'psutil>=5.0.1',
'scikit-image>=0.12.3',
'numba>=0.25',
],
extras_require={
'knossos': ['knossos_utils'],
'ipython': ['ipython'],
},
include_package_data=True,
author="Marius Killinger",
author_email="[email protected]",
description="ELEKTRONN2 a is highly configurable toolkit for training 3d/2d CNNs and general Neural Networks",
long_description=read('README.rst'),
license="GPL",
keywords="cnn theano neural network machine learning classification",
url="http://www.elektronn.org/",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis", ],
)