Open ghuls opened 4 years ago
Is there a way to add this path to PATH directly from the easybuild config file?
Yes, modextrapaths = { 'PATH': 'libexec/%(namelower)s-%(version)s' } should do it. Although stuff under libexec is normally not supposed to be used by users directly. But they (MEM devs) can of course have done a bad setup...
Thanks, seems to work.
I notices that while compiling MEME via easybuild or via the default configure script, the tomtom
binary of MEME is 58% faster than when it is compiled with easybuild. This looks like a big performance difference.
MEME also support compilation with openMPI.
MEME configure script uses this (without "-march-native"):
buildopts = 'CFLAGS="-std=gnu89 -fno-common -Wall -Wno-unused -DUNIX -D__USE_FIXED_PROTOTYPES__ -O3 -march=native"'
--- MEME-5.1.1-foss-2018a-Perl-5.28.1-Python-3.6.4.eb 2020-03-30 18:16:19.636747000 +0200
+++ MEME-5.3.3-foss-2018a-Perl-5.28.1-Python-3.6.4.eb 2021-06-28 13:32:30.565076000 +0200
@@ -1,7 +1,7 @@
easyblock = 'ConfigureMake'
name = 'MEME'
-version = '5.1.1'
+version = '5.3.3'
versionsuffix = '-Perl-%(perlver)s-Python-%(pyver)s'
homepage = 'http://meme-suite.org'
@@ -15,24 +15,26 @@
source_urls = ['http://meme-suite.org/meme-software/%(version)s/']
sources = ['%(namelower)s-%(version)s.tar.gz']
-checksums = ['38d73d256d431ad4eb7da2c817ce56ff2b4e26c39387ff0d6ada088938b38eb5']
+checksums = ['5f2679c944573a6cb3556e88f11529973753993fe227b2399fc06451270fa1ed']
dependencies = [
('libxml2', '2.9.9'),
('libxslt', '1.1.33'),
('zlib', '1.2.11'),
...
configopts = '--with-perl=${EBROOTPERL}/bin/perl --with-python3=${EBROOTPYTHON}/bin/python '
-# Remove Python2 script
-postinstallcmds = ['rm -f %(installdir)s/bin/dreme']
+buildopts = 'CFLAGS="-std=gnu89 -fno-common -Wall -Wno-unused -DUNIX -D__USE_FIXED_PROTOTYPES__ -O3 -march=native"'
+
+# Add MEME python/perl scripts to PATH.
+modextrapaths = {'PATH': 'libexec/%(namelower)s-%(version)s'}
sanity_check_paths = {
- #'files': ["bin/meme", "bin/dreme-py3", "bin/meme-chip"],
- 'files': ["bin/meme", "bin/meme-chip"],
+ 'files': ["bin/meme", "bin/meme-chip", "bin/tomtom"],
'dirs': ["lib"],
}
The MEME (local version has updated version numbers) module does not add
libexec/meme-<version>
to PATH when installing the module. It contains a lot of tools:If I added this to the final module file, it works: