Skip to content

Commit 8158857

Browse files
committed
Merge pull request easybuilders#1128 from boegel/v1.16.x
release EasyBuild v1.16.1
2 parents 771608b + 80033f6 commit 8158857

9 files changed

Lines changed: 36 additions & 17 deletions

File tree

RELEASE_NOTES

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ For more detailed information, please see the git log.
33

44
These release notes can also be consulted at http://easybuild.readthedocs.org/en/latest/Release_notes.html.
55

6+
v1.16.1 (December 19th 2014)
7+
----------------------------
8+
9+
bugfix release
10+
- fix functionality that is broken with --deprecated=2.0 or with $EASYBUILD_DEPRECATED=2.0
11+
- don't include easyconfig parameters for ConfigureMake in eb -a, since fallback is deprecated (#1123)
12+
- correctly check software_license value type (#1124)
13+
- fix generate_software_list.py script w.r.t. deprecated fallback to ConfigureMake (#1127)
14+
- other bug fixes
15+
- fix logging issues in tests, sync with vsc-base v2.0.0 (#1120)
16+
617
v1.16.0 (December 18th 2014)
718
----------------------------
819

easybuild/framework/easyconfig/easyconfig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ def new_ec_method(self, key, *args, **kwargs):
9999
# make sure that value for software_license has correct type, convert if needed
100100
if key == 'software_license':
101101
# key 'license' will already be mapped to 'software_license' above
102-
lic = self._config['software_license']
103-
if not isinstance(lic, License):
102+
lic = self._config['software_license'][0]
103+
if lic is not None and not isinstance(lic, License):
104104
self.log.deprecated('Type for software_license must to be instance of License (sub)class', '2.0')
105105
lic_type = type(lic)
106106

107107
class LicenseLegacy(License, lic_type):
108-
"""A special License class to deal with legacy license paramters"""
108+
"""A special License class to deal with legacy license parameters"""
109109
DESCRICPTION = ("Internal-only, legacy closed license class to deprecate license parameter."
110110
" (DO NOT USE).")
111111
HIDDEN = False

easybuild/scripts/generate_software_list.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,13 @@
126126
log.info("found valid easyconfig %s" % ec)
127127
if not ec.name in names:
128128
log.info("found new software package %s" % ec)
129+
ec.easyblock = None
129130
# check if an easyblock exists
130-
module = get_easyblock_class(None, name=ec.name).__module__.split('.')[-1]
131-
if module != "configuremake":
132-
ec.easyblock = module
133-
else:
134-
ec.easyblock = None
131+
ebclass = get_easyblock_class(None, name=ec.name, default_fallback=False)
132+
if ebclass is not None:
133+
module = ebclass.__module__.split('.')[-1]
134+
if module != "configuremake":
135+
ec.easyblock = module
135136
configs.append(ec)
136137
names.append(ec.name)
137138
except Exception, err:

easybuild/tools/options.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,12 @@ def avail_easyconfig_params(self):
508508
"""
509509
Print the available easyconfig parameters, for the given easyblock.
510510
"""
511-
app = get_easyblock_class(self.options.easyblock)
512-
extra = app.extra_options()
511+
extra = []
512+
app = get_easyblock_class(self.options.easyblock, default_fallback=False)
513+
if app is not None:
514+
extra = app.extra_options()
513515
mapping = convert_to_help(extra, has_default=False)
514-
if len(extra) > 0:
516+
if extra:
515517
ebb_msg = " (* indicates specific for the %s EasyBlock)" % app.__name__
516518
extra_names = [x[0] for x in extra]
517519
else:

easybuild/tools/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# note: release candidates should be versioned as a pre-release, e.g. "1.1rc1"
3939
# 1.1-rc1 would indicate a post-release, i.e., and update of 1.1, so beware!
40-
VERSION = LooseVersion("1.16.0")
40+
VERSION = LooseVersion("1.16.1")
4141
UNKNOWN = "UNKNOWN"
4242

4343
def get_git_revision():

test/framework/options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def run_test(custom=None, extra_params=[]):
382382
if os.path.exists(dummylogfn):
383383
os.remove(dummylogfn)
384384

385+
run_test()
385386
run_test(custom='EB_foo', extra_params=['foo_extra1', 'foo_extra2'])
386387
run_test(custom='bar', extra_params=['bar_extra1', 'bar_extra2'])
387388
run_test(custom='EB_foofoo', extra_params=['foofoo_extra1', 'foofoo_extra2'])

test/framework/utilities.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,13 @@ def tearDown(self):
131131
# restore original Python search path
132132
sys.path = self.orig_sys_path
133133

134-
for path in [self.test_buildpath, self.test_installpath, self.test_prefix]:
134+
# cleanup
135+
for path in [self.logfile, self.test_buildpath, self.test_installpath, self.test_prefix]:
135136
try:
136-
shutil.rmtree(path)
137+
if os.path.isdir(path):
138+
shutil.rmtree(path)
139+
else:
140+
os.remove(path)
137141
except OSError, err:
138142
pass
139143

vsc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Code from https://github.com/hpcugent/vsc-base
22

3-
based on 2146be5301da34043adf4646169e5dfec88cd2f5 (vsc-base v1.9.9)
3+
based on eb47bee435e5e24666b398d8dd41f82a40214b7a (vsc-base v2.0.0)

vsc/utils/generaloption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
#
3-
# Copyright 2011-2013 Ghent University
3+
# Copyright 2011-2014 Ghent University
44
#
55
# This file is part of vsc-base,
66
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
@@ -708,7 +708,7 @@ def __init__(self, **kwargs):
708708
go_args = kwargs.pop('go_args', None)
709709
self.no_system_exit = kwargs.pop('go_nosystemexit', None) # unit test option
710710
self.use_configfiles = kwargs.pop('go_useconfigfiles', self.CONFIGFILES_USE) # use or ignore config files
711-
self.configfiles = kwargs.pop('go_configfiles', self.CONFIGFILES_INIT) # configfiles to parse
711+
self.configfiles = kwargs.pop('go_configfiles', self.CONFIGFILES_INIT[:]) # configfiles to parse
712712
configfiles_initenv = kwargs.pop('go_configfiles_initenv', None) # initial environment for configfiles to parse
713713
prefixloggername = kwargs.pop('go_prefixloggername', False) # name of logger is same as envvar prefix
714714
mainbeforedefault = kwargs.pop('go_mainbeforedefault', False) # Set the main options before the default ones

0 commit comments

Comments
 (0)