-
Notifications
You must be signed in to change notification settings - Fork 683
/
ANTs-2.3.0-foss-2017b-Python-2.7.14.eb
45 lines (31 loc) · 1.33 KB
/
ANTs-2.3.0-foss-2017b-Python-2.7.14.eb
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
easyblock = 'CMakeMake'
name = 'ANTs'
version = '2.3.0'
versionsuffix = '-Python-%(pyver)s'
homepage = 'http://stnava.github.io/ANTs/'
description = """ANTs extracts information from complex datasets that include imaging. ANTs is useful for managing,
interpreting and visualizing multidimensional data."""
toolchain = {'name': 'foss', 'version': '2017b'}
toolchainopts = {'pic': True}
source_urls = ['https://github.com/stnava/ANTs/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['34bdeaa3bafc2e115e89acaae5733445e4b29f8fb98110067a187b036cb03057']
builddependencies = [('CMake', '3.12.1')]
dependencies = [
('Python', '2.7.14'),
('VTK', '8.0.1', versionsuffix),
]
separate_build_dir = True
configopts = '-DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF '
configopts += '-DUSE_VTK=ON -DUSE_SYSTEM_VTK=ON '
configopts += '-DSuperBuild_ANTS_USE_GIT_PROTOCOL=OFF'
skipsteps = ['install']
# need to ensure user has write permissions on all files, to avoid permission denied problems when copying
buildopts = ' && mkdir -p %(installdir)s && chmod -R u+w . && cp -a * %(installdir)s/'
postinstallcmds = ["cp -a %(builddir)s/ANTs-%(version)s/Scripts/* %(installdir)s/bin/"]
sanity_check_paths = {
'files': ['bin/ANTS', 'bin/antsBrainExtraction.sh'],
'dirs': ['lib'],
}
modextravars = {'ANTSPATH': '%(installdir)s/bin'}
moduleclass = 'data'