Skip to content

Commit

Permalink
Rootpainter and patch
Browse files Browse the repository at this point in the history
  • Loading branch information
orbsmiv committed Jun 26, 2023
1 parent 6045260 commit 55e0de2
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
easyblock = "PythonBundle"

name = 'RootPainter'
version = '0.2.27.0'
versionsuffix = '-CUDA-%(cudaver)s'

homepage = 'https://github.com/healpy/healpy'
description = """RootPainter is a GUI-based software tool for the rapid training of deep neural networks for use in
biological image analysis. RootPainter uses a client-server architecture, allowing users with a typical laptop to
utilise a GPU on a more computationally powerful server."""

toolchain = {'name': 'foss', 'version': '2022a'}
toolchainopts = {'pic': True}

dependencies = [
('Python', '3.10.4'),
('CUDA', '11.7.0', '', SYSTEM),
('SciPy-bundle', '2022.05'),
('scikit-image', '0.19.3'),
('Pillow', '9.1.1'),
('PyTorch', '2.0.1', versionsuffix),
('torchvision', '0.15.2', versionsuffix),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('imagecodecs', '2023.3.16', {
'source_tmpl': '%(name)s-%(version)s-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl'
}),
('root_painter_trainer', version, {
'patches': ['python-deps.patch']
}),
]

moduleclass = 'bio'
23 changes: 23 additions & 0 deletions easyconfigs/r/RootPainter/python-deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- setup.py.old 2023-06-26 14:24:17.129957315 +0100
+++ setup.py 2023-06-26 14:25:00.078147644 +0100
@@ -22,13 +22,13 @@
]
},
install_requires=[
- "scikit-image==0.19.3",
- "numpy==1.24.2",
- "scipy==1.10.0",
- "Pillow==9.3.0",
- "imagecodecs==2021.8.26",
- "torch==1.13.1",
- "torchvision==0.14.1"
+ "scikit-image>=0.19.3",
+ "numpy>=1.22.3",
+ "scipy>=1.8.1",
+ "Pillow>=9.1.0",
+ "imagecodecs>=2021.8.26",
+ "torch>=1.13.1",
+ "torchvision>=0.14.1"
],
classifiers=[
'Intended Audience :: Developers',

0 comments on commit 55e0de2

Please sign in to comment.