-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (57 loc) · 1.77 KB
/
setup.py
File metadata and controls
64 lines (57 loc) · 1.77 KB
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
from setuptools import setup, find_packages
import platform
import os
def get_requirements(version = "core"):
requirements = [
# explicit, though TF will bring it in
"tensorflow==2.18.0",
"numpy>=1.26,<2",
"scipy>=1.10,<1.12",
"scikit-image>=0.22.0",
"opencv-python>=4.9.0.80",
"pandas>=2.1.0",
"stardist>=0.9.1",
"omnipose>=1.0.6",
"tqdm>=4.66",
"gitpython>=3.1.40",
"coverage>=7.3",
"mpl_interactions>=0.24",
"ipympl>=0.9",
]
if platform.processor() == "arm":
requirements += ["tensorflow-metal"]
# Check if installation is happening on euler
if os.getenv("MIDAP_INSTALL_VERSION", "core").lower() == "euler":
requirements = [
"btrack==0.4.6",
"coverage>=7.3.2",
"gitpython>=3.1.40",
"napari[all]",
"omnipose==0.4.4",
"opencv-python>=4.8.1",
"pandas>=2.0.2",
"scikit-image>=0.19.3,<=0.20.0",
"stardist>=0.8.5",
"tensorflow==2.15.0",
"tqdm>=4.65.0",
"build",
"twine",
]
return requirements
setup(
name="biscuit",
version="1.0.0",
description="A package for segmentation comparison",
long_description=""" Biscuit is a package for segmentation comparison.""",
packages=find_packages(), # Add this line
install_requires=get_requirements(), # Add this line
package_data={
"midap": ["data_examples/*"], # ❶ images
"midap.apps": ["download_info.json"], # ❷ download configuration
},
entry_points={
"console_scripts": [
"biscuit_download = midap.apps.download_files:main",
],
},
)