|
32 | 32 | @author: Jens Timmerman (Ghent University) |
33 | 33 | @author: Andy Georges (Ghent University) |
34 | 34 | @author: Maxime Boissonneault (Compute Canada, Calcul Quebec, Universite Laval) |
| 35 | +@author: Jasper Grimm (University of York) |
35 | 36 | """ |
36 | 37 |
|
37 | 38 | import os |
|
47 | 48 | class EB_MrBayes(ConfigureMake): |
48 | 49 | """Support for building/installing MrBayes.""" |
49 | 50 |
|
| 51 | + def __init__(self, *args, **kwargs): |
| 52 | + super(EB_MrBayes, self).__init__(*args, **kwargs) |
| 53 | + # For later MrBayes versions, no longer need to use this easyblock |
| 54 | + last_supported_version = '3.2.6' |
| 55 | + if LooseVersion(self.version) > LooseVersion(last_supported_version): |
| 56 | + raise EasyBuildError("Please use the ConfigureMake easyblock for %s versions > %s", self.name, |
| 57 | + last_supported_version) |
| 58 | + |
50 | 59 | def configure_step(self): |
51 | 60 | """Configure build: <single-line description how this deviates from standard configure>""" |
52 | 61 |
|
@@ -106,4 +115,6 @@ def sanity_check_step(self): |
106 | 115 | 'dirs': [], |
107 | 116 | } |
108 | 117 |
|
109 | | - super(EB_MrBayes, self).sanity_check_step(custom_paths=custom_paths) |
| 118 | + custom_commands = ["mb <<< %s" % x for x in ["about", "help"]] |
| 119 | + |
| 120 | + super(EB_MrBayes, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands) |
0 commit comments