Default PATH arg

This commit is contained in:
Mario Melara 2016-03-02 16:14:42 -08:00
parent 16d8c25b23
commit 58efe1550d

View file

@ -170,7 +170,7 @@ class OperatingSystem(object):
find compilers we call find_compilers method for each operating system
"""
def __init__(self, name, version, compiler_strategy):
def __init__(self, name, version, compiler_strategy="PATH"):
self.name = name
self.version = version
self.compiler_strategy = compiler_strategy
@ -181,19 +181,9 @@ def __str__(self):
def __repr__(self):
return self.__str__()
def compiler_strategy(self):
""" Operating Systems will now be in charge of the compiler finding
strategy. They will each have their own find_compilers method
which depending on their compiler strategy will find the compilers
using a specific method (i.e PATH vs MODULES).
"""
raise NotImplementedError()
def _cmp_key(self):
return (self.name, self.version, self.compiler_strategy)
def to_dict(self):
d = {}
d['name'] = self.name