-
Notifications
You must be signed in to change notification settings - Fork 48
/
setup.py
69 lines (61 loc) · 1.53 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
"""
Copright © 2023 Howard Hughes Medical Institute, Authored by Carsen Stringer and Marius Pachitariu.
"""
import setuptools
install_deps = [
"numpy>=1.24.0",
"scipy",
"scikit-learn",
"numba>=0.57.0",
"natsort",
"tqdm"
]
gui_deps = [
"pyqtgraph>=0.11.0rc0",
"pyqt6",
"pyqt6.sip",
"qtpy",
"superqt",
]
try:
import PyQt5
gui_deps.remove("pyqt6")
gui_deps.remove("pyqt6.sip")
except:
pass
try:
import PySide2
gui_deps.remove("pyqt6")
gui_deps.remove("pyqt6.sip")
except:
pass
try:
import PySide6
gui_deps.remove("pyqt6")
gui_deps.remove("pyqt6.sip")
except:
pass
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="rastermap",
use_scm_version=True,
author="Marius Pachitariu and Carsen Stringer",
author_email="[email protected]",
description="Unsupervised clustering algorithm for 2D data (neurons by time)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/MouseLand/rastermap",
packages=setuptools.find_packages(),
install_requires = install_deps,
extras_require = {
"gui": gui_deps
},
tests_require = ["pytest"],
include_package_data=True,
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
),
)