forked from klusta-team/klustaviewa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
106 lines (84 loc) · 2.87 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import os
from setuptools import *
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
import numpy as np
cmdclass = { }
ext_modules = [ ]
if use_cython:
ext_modules += [
Extension("klustaviewa.stats.correlograms_cython",
["klustaviewa/stats/correlograms_cython.pyx"]),
]
cmdclass.update({ 'build_ext': build_ext })
else:
ext_modules += [
Extension("klustaviewa.stats.correlograms_cython",
["klustaviewa/stats/correlograms_cython.c"]),
]
LONG_DESCRIPTION = """Spike sorting graphical interface."""
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
if __name__ == '__main__':
setup(
zip_safe=False,
name='klustaviewa',
version='0.2.2dev',
author='Cyrille Rossant',
author_email='rossant@github',
packages=['klustaviewa',
'klustaviewa.control',
'klustaviewa.gui',
'klustaviewa.scripts',
'klustaviewa.stats',
'klustaviewa.views',
'klustaviewa.wizard',
#<
# 'qtools',
# 'qtools.qtpy',
# 'qtools.tests',
# 'kwiklib',
# 'kwiklib.dataio',
# 'kwiklib.scripts',
# 'kwiklib.utils',
# 'galry',
# 'galry.managers',
# 'galry.processors',
# 'galry.test',
# 'galry.visuals',
# 'galry.visuals.fontmaps',
#>
],
# Scripts.
entry_points={
'gui_scripts': [
'klustaviewa = klustaviewa.scripts.runklustaviewa:main',
'kwikskope = klustaviewa.scripts.runkwikskope:main', ],
'console_scripts': [
'kwikkonvert = kwiklib.scripts.runkwikkonvert:main',
]
},
# scripts=[],
app=['klustaviewa/scripts/runklustaviewa.pyw',
'klustaviewa/scripts/runkwikskope.pyw',
],
package_data={
'klustaviewa': ['icons/*.png', 'icons/*.ico', 'gui/*.css'],
# INCLUDE GALRY
'galry': ['cursors/*.png', 'icons/*.png'],
'galry.visuals': ['fontmaps/*.*'],
'galry.test': ['autosave/*REF.png'],
},
# Cython stuff.
cmdclass = cmdclass,
ext_modules=ext_modules,
include_dirs=np.get_include(),
url='https://github.com/klusta-team/klustaviewa',
license='LICENSE.md',
description='Spike sorting graphical interface.',
long_description=LONG_DESCRIPTION,
)