Skip to content

Commit

Permalink
#357 monai-full deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed Nov 28, 2024
1 parent a61f9c3 commit a010e1c
Show file tree
Hide file tree
Showing 10 changed files with 1,645 additions and 41 deletions.
4 changes: 2 additions & 2 deletions 357_Synthcity/2023b_v0.2.11_new/monai-2023b-full/dep_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pyasn1 0.6.1
pyasn1_modules 0.4.1
pydicom 3.0.1 -> OK created
PyJWT 2.8.0
pynrrd 1.0.0
pynrrd 1.0.0 -> ok
pyparsing 3.2.0
PySocks 1.7.1
python-dateutil 2.9.0.post0
Expand All @@ -119,7 +119,7 @@ pytorch-ignite 0.4.11 -> ok exts
pytz 2024.2
PyYAML 6.0.2 -> HAVE 6.0.1
referencing 0.35.1
requests 2.32.3
requests 2.32.3 -> HAVE 2.31.0
responses 0.25.3
rpds-py 0.20.1
rsa 4.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies = [
('GitPython', '3.1.42'),
('SciPy-bundle', '2023.11'),
('matplotlib', '3.8.2'),
('scikit-learn', '1.3.2'),
('scikit-learn', '1.4.0'),
('PyYAML', '6.0.1'),
('SQLAlchemy', '2.0.29'),
('protobuf-python', '4.25.3'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,14 @@ github_account = 'Project-MONAI'
# extras =
# ok pytorch-ignite==0.4.11 -> add to exts - pin to 0.4.11 version + fix from monai
# ok gdown>=4.7.3
# ?OK scipy>=1.12.0; python_version >= '3.9' -> no, I have 1.11.4 -> unpin? - seems I do not have to unpin - no pip check errors
# OK? scipy>=1.12.0; python_version >= '3.9' -> no, I have 1.11.4 -> unpin? - seems I do not have to unpin - no pip check errors
# OK CREATED itk>=5.2 - ctreated ITK-5.4.0
# OK CREATED nibabel
# OK pillow!=8.3.0 # https://github.com/python-pillow/Pillow/issues/5571
# OK tensorboard>=2.12.0 # https://github.com/Project-MONAI/MONAI/issues/7434
# OK CREATED scikit-image>=0.19.0
# tqdm>=4.47.0
# OK tqdm>=4.47.0
# ok lmdb
# flake8>=3.8.1
# flake8-bugbear<=24.2.6 # https://github.com/Project-MONAI/MONAI/issues/7690
# flake8-comprehensions
# mccabe
# pep8-naming
# pycodestyle
# pyflakes
# black>=22.12
# isort>=5.1
# ruff
# pytype>=2020.6.1; platform_system != "Windows"
# types-setuptools
# mypy>=1.5.0, <1.12.0
# OK ninja
# OK torchvision
# OK psutil - v5.9.6 in pypi bundle
Expand All @@ -52,35 +39,31 @@ github_account = 'Project-MONAI'
# OK CREATED imagecodecs; platform_system == "Linux" or platform_system == "Darwin"
# OK tifffile; platform_system == "Linux" or platform_system == "Darwin" in scikit-image
# OK pandas
# requests
# OK requests
# OK CREATED einops
# OK transformers>=4.36.0, <4.41.0; python_version <= '3.10'
# OK CREATED mlflow>=2.12.2
# OK CREATED clearml>=1.10.0rc0
# OK matplotlib>=3.6.3
# OK tensorboardX
# types-PyYAML
# OK pyyaml
# ok fire
# OK jsonschema - v4.17.3 in pypi bundle
# pynrrd
# pre-commit
# ok pynrrd
# OK CREATED pydicom - in NiBabel
# OK h5py
# ok nni==2.10.1; platform_system == "Linux" and "arm" not in platform_machine and "aarch" not in platform_machine
# OK optuna
# git+https://github.com/Project-MONAI/MetricsReloaded@monai-support#egg=MetricsReloaded
# OK CREATED onnx>=1.13.0
# typeguard<3 # https://github.com/microsoft/nni/issues/5457
# filelock<3.12.0 # https://github.com/microsoft/nni/issues/5523
# zarr
# lpips==0.1.4
# nvidia-ml-py
# ok typeguard # https://github.com/microsoft/nni/issues/5457
# ok filelock<3.12.0 # https://github.com/microsoft/nni/issues/5523
# OK CREATED zarr
# ok lpips==0.1.4
# X nvidia-ml-py
# ok huggingface_hub
# pyamg>=5.0.0
# CREATE pyamg>=5.0.0
# git+https://github.com/facebookresearch/segment-anything.git@6fdee8f2727f4506cfbbe553e23b895e27956588
# onnx_graphsurgeon
# polygraphy
# ok fire 0.7.0 requires termcolor, which is not installed.
# OK gdown 5.2.0 requires beautifulsoup4, which is not installed.
# OK gdown 5.2.0 requires tqdm, which is not installed.
Expand Down Expand Up @@ -108,18 +91,22 @@ github_account = 'Project-MONAI'


# extras: not in local_pip_extras now
# [ cucim, (some cuda stuff, do not install)
# [
# cucim, (some cuda stuff)
# pynvml, (NVIDIA mng lib)
# pynrrd, onnxruntime, zarr, lpips, ]
# onnxruntime, (not needed?)
# ]

# ORIGINAL from 5.3.0
# local_pip_extras = "einops,fire,gdown,ignite,itk,jsonschema,lmdb,nibabel,pydicom,"
# local_pip_extras += "openslide,pandas,pillow,psutil,pyyaml,scipy,"
# local_pip_extras += "skimage,tensorboard,torchvision,tqdm"

local_pip_extras = "einops,fire,gdown,ignite,scipy,tqdm,itk,jsonschema,lmdb,nibabel,pydicom,ninja,h5py,optuna,"
local_pip_extras += "openslide,pandas,pillow,psutil,pyyaml,skimage,tensorboard,torchvision,_hubhuggingface,nni,"
local_pip_extras += "transformers,mlflow,clearml,matplotlib,tensorboardX,tifffile,imagecodecs,onnx"
# local_pip_extras += "openslide,pandas,pillow,psutil,pyyaml,skimage,tensorboard,torchvision,_hubhuggingface,nni,"
# local_pip_extras += "transformers,mlflow,clearml,matplotlib,tensorboardX,tifffile,imagecodecs,onnx,zarr,lpips,pynrrd"

# local_pip_extras = "all"

builddependencies = [
('hatchling', '1.18.0'),
Expand Down Expand Up @@ -153,12 +140,30 @@ dependencies = [
('h5py', '3.11.0'),
('Optuna', '3.6.1'),
('ONNX', '1.17.0'),
('zarr', '2.18.3'),
('PyAMG', '5.2.1'),
]

use_pip = True

exts_list = [
('nni', '3.0'),
('pynrrd', '1.0.0', {
'modulename': 'nrrd',
'checksums': ['4eb4caba03fbca1b832114515e748336cb67bce70c7f3ae36bfa2e135fc990d2'],
}),
('lpips', '0.1.4', {
'checksums': ['3846331df6c69688aec3d300a5eeef6c529435bc8460bd58201c3d62e56188fa'],
}),
('filelock', '3.11.0', {
'checksums': ['3618c0da67adcc0506b015fd11ef7faf1b493f0b40d87728e19986b536890c37'],
}),
('typeguard', '4.1.2', {
'checksums': ['3be187945f9ef5a9f6d7a926dfe54babb7dfd807085ce05f9a5e8735f2487990'],
}),
('nni', '3.0', {
'source_tmpl': '%(name)s-%(version)s-py3-none-manylinux1_x86_64.whl',
'checksums': ['176456f8275c096655b6f178dc0589a7642afbb37ecbcce7afe6ad9949592088'],
}),
('huggingface-hub', '0.26.2', {
'sources': ['huggingface_hub-%(version)s.tar.gz'],
'checksums': ['b100d853465d965733964d123939ba287da60a547087783ddff8a323f340332b'],
Expand Down
12 changes: 7 additions & 5 deletions 357_Synthcity/2023b_v0.2.11_new/monai-2023b-full/onnx-2023b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ capabilities needed for inferencing (scoring)."""
toolchain = {'name': 'gfbf', 'version': '2023b'}

sources = [SOURCELOWER_TAR_GZ]
patches = ['ONNX-1.15.0_fix-protobuf-linking.patch']
checksums = [
{'onnx-1.15.0.tar.gz': 'b18461a7d38f286618ca2a6e78062a2a9c634ce498e631e708a8041b00094825'},
{'ONNX-1.15.0_fix-protobuf-linking.patch': '5c11eca5275a25d69f989571fe1f387b84c7334478356577f6f6349c5954f54d'},
]
checksums = ['48ca1a91ff73c1d5e3ea2eef20ae5d0e709bb8a2355ed798ffc2169753013fd3']

builddependencies = [
('CMake', '3.27.6'),
Expand All @@ -39,6 +35,12 @@ download_dep_fail = True
preinstallopts = """sed -i 's/"version",//g' pyproject.toml && """
preinstallopts += """sed -i 's/readme = .*/version = "%(version)s"/g' pyproject.toml && """

# fix for: undefined symbol: _ZN6google8protobuf8internal15ThreadSafeArena13thread_cache_E
# see also https://bugs.archlinux.org/task/75242
# author: Kenneth Hoste (HPC-UGent)
preinstallopts += "sed -i '50 s/if(MSVC)/#if(MSVC)/' CMakeLists.txt && "
preinstallopts += "sed -i '53 s/endif()/#endif()/' CMakeLists.txt && "

# specify C++17 standard and link to protobuf shared library (also requires patch to use -DPROTOBUF_USE_DLLS);
# required to fix "error: 'string_view' in namespace 'std' does not name a type",
# see also https://github.com/onnx/onnx/issues/5430
Expand Down
Loading

0 comments on commit a010e1c

Please sign in to comment.