-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
62 lines (55 loc) · 1.5 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
"""
setup.py
"""
DESCRIPTION = 'Package for tracking and analyzing Elevated Plus Maze (EPM) data.'
VERSION = '0.1.1'
DISTNAME = 'epm-tracker'
AUTHOR = 'Ross McKinney'
AUTHOR_EMAIL = 'ross.m.mckinney@gmail.com'
LICENSE = 'MIT'
REQUIRED_PACKAGES = {
'click': 'click',
'pandas': 'pandas',
'scipy': 'scipy',
'skimage': 'skimage',
'matplotlib': 'matplotlib',
'PyQt4': 'PyQt4',
'qdarkstyle': 'qdarkstyle',
'numpy': 'numpy',
'motmot.FlyMovieFormat.FlyMovieFormat': 'motmot.FlyMovieFormat>=0.5.9.1'
}
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
def check_dependencies():
"""Make sure all necessary packages are present."""
install = []
for key, value in REQUIRED_PACKAGES.iteritems():
try:
module = __import__(key)
except ImportError:
install.append(value)
return install
if __name__ == '__main__':
install_requires = check_dependencies()
setup(
name=DISTNAME,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=AUTHOR,
maintainer_email=AUTHOR_EMAIL,
description=DESCRIPTION,
license=LICENSE,
version=VERSION,
install_requires=install_requires,
packages=[
'epm',
'epm.analysis'
],
package_data={'epm': ['icons/*.png']},
entry_points="""
[console_scripts]
epm-tracker=epm.entry:launch_gui
"""
)