spack/lib/spack
Todd Gamblin e3101808ae Make multimethods work with inheritance. (#3411)
Previously, this would fail with a NoSuchMethodError:

    class Package(object):
        # this is the default implementation
        def some_method(self):
            ...

    class Foo(Package):
        @when('platform=cray')
        def some_method(self):
            ...

        @when('platform=linux')
        def some_method(self):
            ...

This fixes the implementation of `@when` so that the superclass method
will be invoked when no subclass method matches.

Adds tests to ensure this works, as well.
2017-03-11 05:48:36 -08:00
..
docs Fix readline support in spack python (#3132) 2017-02-17 15:58:06 -08:00
env Add support for IBM threaded compilers: xl*_r (#2894) 2017-01-25 16:26:17 -07:00
external Make distro more robust to unreadable files (#3110) 2017-02-10 10:23:04 -08:00
llnl created elf virtual package and updated dependent packages (#3317) 2017-03-09 10:36:32 -08:00
spack Make multimethods work with inheritance. (#3411) 2017-03-11 05:48:36 -08:00