-
Notifications
You must be signed in to change notification settings - Fork 781
{lib}[foss/2021b] DeepLabCut v2.2.3 w/ Python 3.9.6 #16420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
sassy-crick
wants to merge
6
commits into
easybuilders:develop
from
sassy-crick:20221017102852_new_pr_DeepLabCut223
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
906c2b2
adding easyconfigs: DeepLabCut-2.2.3-foss-2021b-CUDA-11.4.1.eb
c356fd6
True replaced by SYSTEM
999cd69
pip_sanity_check added
d1386ba
Comment added
675a440
download_dep removed as PythonBundle being used
0bf54b7
PyTables added as extension as version 3.7.0 is required
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
easybuild/easyconfigs/d/DeepLabCut/DeepLabCut-2.2.3-foss-2021b-CUDA-11.4.1.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Loosely based on PR #7680 | ||
| # J. Sassmannshausen (Imperial College London/UK) | ||
|
|
||
| easyblock = 'PythonBundle' | ||
|
|
||
| name = 'DeepLabCut' | ||
| version = '2.2.3' | ||
| versionsuffix = '-CUDA-%(cudaver)s' | ||
| local_version = '%(versionsuffix)s-contrib' | ||
|
|
||
| homepage = 'http://www.mousemotorlab.org/deeplabcut' | ||
| description = "Markerless tracking of user-defined features with deep learning" | ||
|
|
||
| toolchain = {'name': 'foss', 'version': '2021b'} | ||
| toolchainopts = {'pic': True} | ||
|
|
||
| dependencies = [ | ||
| ('CUDA', '11.4.1', '', SYSTEM), | ||
| ('cuDNN', '8.2.2.26', '-CUDA-%(cudaver)s', SYSTEM), | ||
| ('Python', '3.9.6'), | ||
| ('h5py', '3.6.0'), | ||
| ('IPython', '7.26.0'), | ||
| ('scikit-learn', '1.0.2'), | ||
| ('scikit-image', '0.19.1'), | ||
| ('TensorFlow', '2.7.1', versionsuffix), | ||
| ('PyYAML', '5.4.1'), | ||
| ('wxPython', '4.2.0'), | ||
| ('OpenCV', '4.5.5', local_version), | ||
| ('numba', '0.54.1'), | ||
| ('libyaml', '0.2.5'), | ||
| ('imgaug', '0.4.0', versionsuffix), | ||
| ('tqdm', '4.62.3'), | ||
| ('ruamel.yaml', '0.17.21'), | ||
| ('PyYAML', '5.4.1'), | ||
| ('statsmodels', '0.13.1'), | ||
| ('PyTorch', '1.11.0', versionsuffix), | ||
| ('MoviePy', '1.0.3'), | ||
| ('SciPy-bundle', '2021.10'), | ||
| ('HDF5', '1.12.1'), | ||
| ('LZO', '2.10'), | ||
| ('Blosc', '1.21.1'), | ||
| ] | ||
|
|
||
| sanity_pip_check = True | ||
| use_pip = True | ||
|
|
||
| exts_list = [ | ||
| ('filterpy', '1.4.5', { | ||
| 'sources': ['%(name)s-%(version)s.zip'], | ||
| 'checksums': ['4f2a4d39e4ea601b9ab42b2db08b5918a9538c168cff1c6895ae26646f3d73b1'], | ||
| }), | ||
| ('tensorpack', '0.11', { | ||
| 'checksums': ['022b610e416e62e3575424cd08e60af27808a5fb6914294615391caf582cbd4f'], | ||
| }), | ||
| ('tf_slim', '1.1.0', { | ||
| 'source_urls': ['https://github.com/google-research/tf-slim/archive'], | ||
| 'sources': ['v%(version)s.tar.gz'], | ||
| 'checksums': ['964cde4b7728a408dcd5c841ab6b93d95137ab4b60db28b10400f86286bfeb8b'], | ||
| }), | ||
| ('msgpack-numpy', '0.4.8', { | ||
| 'checksums': ['c667d3180513422f9c7545be5eec5d296dcbb357e06f72ed39cc683797556e69'], | ||
| 'sources': ['msgpack-numpy-0.4.8.tar.gz'], | ||
| }), | ||
| # requires PyTables >= 3.7.0 | ||
| ('PyTables', '3.7.0', { | ||
| 'source_urls': ['https://github.com/PyTables/PyTables/archive/'], | ||
| 'sources': ['v%(version)s.tar.gz'], | ||
| 'patches': ['%(name)s-%(version)s-fix-libs.patch'], | ||
| 'checksums': ['41065fc11b958dde09bd5b9c069d88e40ca07ad10687dd597835fcc8199e81ea', | ||
| # PyTables-3.7.0-fix-libs.patch: | ||
| '022c26960b8401f3693974f57be49832b72ee1f3a0a92f8e0dd9281c7c0e2c8c'], | ||
| 'modulename': 'tables', | ||
| }), | ||
| (name, version, { | ||
| 'source_tmpl': '%(namelower)s-%(version)s.tar.gz', | ||
| 'checksums': ['13c1df41c24015a302425cde4b0d3d9fa97fc0fe7e0b45efc82ae66398b29cbf'], | ||
| }), | ||
| ] | ||
|
|
||
| moduleclass = 'lib' | ||
19 changes: 19 additions & 0 deletions
19
easybuild/easyconfigs/d/DeepLabCut/PyTables-3.7.0-fix-libs.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # pyTables expects that LIBS is a list of library names and will add | ||
| # a -l by itself. | ||
| # original patch by ward.poelmans@ugent.be, ported to PyTables 3.5.2 by Kenneth Hoste (HPC-UGent) | ||
| # updated to 3.7.0 by J. Sassmannshausen (Imperial College London/UK) | ||
| diff --git a/PyTables-3.7.0.orig/setup.py b/PyTables-3.7.0/setup.py | ||
| index ab8f8e3..5804ca3 100755 | ||
| --- a/PyTables-3.7.0.orig/setup.py | ||
| +++ b/PyTables-3.7.0/setup.py | ||
| @@ -526,6 +526,10 @@ if __name__ == "__main__": | ||
| # is not a good idea. | ||
| CFLAGS = os.environ.get("CFLAGS", "").split() | ||
| LIBS = os.environ.get("LIBS", "").split() | ||
| + for idx, lib in enumerate(LIBS): | ||
| + if lib.startswith("-l"): | ||
| + LIBS[idx] = lib.replace("-l", "") | ||
| + | ||
| CONDA_PREFIX = os.environ.get("CONDA_PREFIX", "") | ||
| # We start using pkg-config since some distributions are putting HDF5 | ||
| # (and possibly other libraries) in exotic locations. See issue #442. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May make sense to bump this to 1.12.1 if #17154 (CUDA 11.4.1) or #17272 (CUDA 11.5.1) gets merged