forked from MouseLand/pykilosort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (55 loc) · 1.92 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
# -*- coding: utf-8 -*-
# flake8: noqa
"""Installation script."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import os
import os.path as op
from pathlib import Path
import re
from setuptools import setup
#------------------------------------------------------------------------------
# Setup
#------------------------------------------------------------------------------
def _package_tree(pkgroot):
path = op.dirname(__file__)
subdirs = [op.relpath(i[0], path).replace(op.sep, '.')
for i in os.walk(op.join(path, pkgroot))
if '__init__.py' in i[2]]
return subdirs
readme = (Path(__file__).parent / 'README.md').read_text()
# Find version number from `__init__.py` without executing it.
with (Path(__file__).parent / 'pykilosort/__init__.py').open('r') as f:
version = re.search(r"__version__ = '([^']+)'", f.read()).group(1)
setup(
name='pykilosort',
version=version,
license="BSD",
description='Python port of KiloSort 2',
long_description=readme,
author='Cyrille Rossant',
author_email='[email protected]',
url='https://github.com/rossant/pykilosort',
packages=_package_tree('pykilosort'),
package_dir={'pykilosort': 'pykilosort'},
package_data={
'pykilosort': [],
},
include_package_data=True,
keywords='kilosort,spike sorting,electrophysiology,neuroscience',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Framework :: IPython",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
],
entry_points={
'console_scripts': [
'kilosort = pykilosort.gui:kilosort'
],
},
)