Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

setup.py 2.7 KB

You have to be logged in to leave a comment. Sign In
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
  1. import setuptools
  2. install_deps = ["importlib-metadata",
  3. "natsort",
  4. "rastermap>=0.9.0",
  5. "tifffile",
  6. "torch>=1.13.1",
  7. "numpy>=1.24.3",
  8. "numba>=0.57.0",
  9. "matplotlib",
  10. "scipy>=1.9.0",
  11. "scikit-learn",
  12. "cellpose",
  13. "scanimage-tiff-reader>=1.4.1"
  14. ]
  15. gui_deps = [
  16. "qtpy",
  17. "pyqt6",
  18. "pyqt6.sip",
  19. "pyqtgraph",
  20. ]
  21. io_deps = [
  22. "paramiko",
  23. "nd2",
  24. "sbxreader",
  25. "h5py",
  26. "opencv-python-headless",
  27. "xmltodict",
  28. "dcimg"
  29. ]
  30. nwb_deps = [
  31. "pynwb>=2.3.2",
  32. ]
  33. test_deps = [
  34. "pytest",
  35. "tenacity",
  36. "tqdm",
  37. "pynwb>=2.3.2", #this is needed as test_io contains a test with nwb
  38. "pytest-qt>3.3.0",
  39. ]
  40. # check if pyqt/pyside already installed
  41. try:
  42. import PyQt5
  43. gui_deps.remove("pyqt6")
  44. gui_deps.remove("pyqt6.sip")
  45. except:
  46. pass
  47. try:
  48. import PySide2
  49. gui_deps.remove("pyqt6")
  50. gui_deps.remove("pyqt6.sip")
  51. except:
  52. pass
  53. try:
  54. import PySide6
  55. gui_deps.remove("pyqt6")
  56. gui_deps.remove("pyqt6.sip")
  57. except:
  58. pass
  59. all_deps = gui_deps + nwb_deps + test_deps + io_deps
  60. try:
  61. import torch
  62. a = torch.ones(2, 3)
  63. major_version, minor_version, _ = torch.__version__.split(".")
  64. if major_version == "2" or int(minor_version) >= 6:
  65. install_deps.remove("torch>=1.6")
  66. except:
  67. pass
  68. with open("README.md", "r") as fh:
  69. long_description = fh.read()
  70. setuptools.setup(
  71. name="suite2p",
  72. author="Marius Pachitariu and Carsen Stringer",
  73. author_email="marius10p@gmail.com",
  74. description="Pipeline for calcium imaging",
  75. long_description=long_description,
  76. long_description_content_type="text/markdown",
  77. url="https://github.com/MouseLand/suite2p",
  78. packages=setuptools.find_packages(),
  79. setup_requires=[
  80. "pytest-runner",
  81. "setuptools_scm",
  82. ],
  83. use_scm_version=True,
  84. install_requires=install_deps,
  85. tests_require=test_deps,
  86. extras_require={
  87. "docs": [
  88. "sphinx>=3.0",
  89. "sphinxcontrib-apidoc",
  90. "sphinx_rtd_theme",
  91. "sphinx-prompt",
  92. "sphinx-autodoc-typehints",
  93. ],
  94. "gui": gui_deps,
  95. "nwb": nwb_deps,
  96. "io": io_deps,
  97. "tests": test_deps,
  98. "all": all_deps,
  99. },
  100. include_package_data=True,
  101. classifiers=[
  102. "Programming Language :: Python :: 3",
  103. "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
  104. "Operating System :: OS Independent",
  105. ],
  106. entry_points = {
  107. "console_scripts": [
  108. "suite2p = suite2p.__main__:main",
  109. "reg_metrics = benchmarks.registration_metrics:main",
  110. "tiff2scanimage = scripts.make_tiff_scanimage_compatible:main",
  111. ]
  112. },
  113. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...