forked from RivuletStudio/rivuletpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (71 loc) · 2.39 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
# import numpy as np
import os
from setuptools import setup, Extension
from setuptools import find_packages
import numpy as np
VERSION = '0.3.0'
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: End Users/Desktop',
'Topic :: Scientific/Engineering :: Bio-Informatics',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: BSD License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython'
]
keywords = 'neuron 3d reconstruction image-stack'
# Configuration for Lib tiff
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
return config
# Parse Requirements
BASEDIR = os.path.dirname(os.path.abspath(__file__))
REQS = ['numpy>=1.8.0',
'scipy>=0.17.0',
'Cython>=0.25.1',
'scikit-fmm==0.0.9',
'scikit-image>=0.14.2',
'matplotlib>=1.3.1',
'nibabel>=2.1.0',
'pyglet>=1.2.4',
'tqdm>4.11.2',
'libtiff==0.4.1']
ext_modules = [
Extension(
'msfm',
sources=[
os.path.join('rivuletpy', 'msfm', 'msfmmodule.c'),
os.path.join('rivuletpy', 'msfm', '_msfm.c'),
]),
]
config = {
'description':
'Rivuletpy: a powerful tool to automatically trace single neurons from 3D light microscopic images.',
'author': 'RivuletStuio',
'url': 'https://github.com/RivuletStudio/rivuletpy',
'author_email': '[email protected], [email protected]',
'version': VERSION,
'install_requires': REQS,
'packages': find_packages(),
'license': 'BSD',
'scripts': [
os.path.join('apps','rtrace'),
os.path.join('apps','compareswc'),
os.path.join('apps','rswc'),
],
'name': 'rivuletpy',
'include_package_data': True,
'ext_modules': ext_modules,
'include_dirs': [np.get_include()], # Add include path of numpy
'setup_requires': 'numpy',
'classifiers': classifiers,
}
setup(**config)