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
  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. ]
  29. nwb_deps = [
  30. "pynwb>=2.3.2",
  31. ]
  32. test_deps = [
  33. "pytest",
  34. "tenacity",
  35. "tqdm",
  36. "pynwb>=2.3.2", #this is needed as test_io contains a test with nwb
  37. "pytest-qt>3.3.0",
  38. ]
  39. # check if pyqt/pyside already installed
  40. try:
  41. import PyQt5
  42. gui_deps.remove("pyqt6")
  43. gui_deps.remove("pyqt6.sip")
  44. except:
  45. pass
  46. try:
  47. import PySide2
  48. gui_deps.remove("pyqt6")
  49. gui_deps.remove("pyqt6.sip")
  50. except:
  51. pass
  52. try:
  53. import PySide6
  54. gui_deps.remove("pyqt6")
  55. gui_deps.remove("pyqt6.sip")
  56. except:
  57. pass
  58. all_deps = gui_deps + nwb_deps + test_deps + io_deps
  59. try:
  60. import torch
  61. a = torch.ones(2, 3)
  62. major_version, minor_version, _ = torch.__version__.split(".")
  63. if major_version == "2" or int(minor_version) >= 6:
  64. install_deps.remove("torch>=1.6")
  65. except:
  66. pass
  67. with open("README.md", "r") as fh:
  68. long_description = fh.read()
  69. setuptools.setup(
  70. name="suite2p",
  71. author="Marius Pachitariu and Carsen Stringer",
  72. author_email="marius10p@gmail.com",
  73. description="Pipeline for calcium imaging",
  74. long_description=long_description,
  75. long_description_content_type="text/markdown",
  76. url="https://github.com/MouseLand/suite2p",
  77. packages=setuptools.find_packages(),
  78. setup_requires=[
  79. "pytest-runner",
  80. "setuptools_scm",
  81. ],
  82. use_scm_version=True,
  83. install_requires=install_deps,
  84. tests_require=test_deps,
  85. extras_require={
  86. "docs": [
  87. "sphinx>=3.0",
  88. "sphinxcontrib-apidoc",
  89. "sphinx_rtd_theme",
  90. "sphinx-prompt",
  91. "sphinx-autodoc-typehints",
  92. ],
  93. "gui": gui_deps,
  94. "nwb": nwb_deps,
  95. "io": io_deps,
  96. "tests": test_deps,
  97. "all": all_deps,
  98. },
  99. include_package_data=True,
  100. classifiers=[
  101. "Programming Language :: Python :: 3",
  102. "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
  103. "Operating System :: OS Independent",
  104. ],
  105. entry_points = {
  106. "console_scripts": [
  107. "suite2p = suite2p.__main__:main",
  108. "reg_metrics = benchmarks.registration_metrics:main",
  109. "tiff2scanimage = scripts.make_tiff_scanimage_compatible:main",
  110. ]
  111. },
  112. )
Tip!

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

Comments

Loading...