Changed Arch to class instead of namedtuple. Now platform is automatically set upon creation of class
This commit is contained in:
parent
45887dec8e
commit
81e236b2de
@ -196,11 +196,13 @@ def _cmp_key(self):
|
|||||||
|
|
||||||
#NOTE: Key error caused because Architecture has no comparison method
|
#NOTE: Key error caused because Architecture has no comparison method
|
||||||
@key_ordering
|
@key_ordering
|
||||||
class Arch(namedtuple("Arch", "platform platform_os target")):
|
class Arch(object):
|
||||||
""" namedtuple for Architecture. Will have it's own __str__ method
|
"Architecture is now a class to help with setting attributes"
|
||||||
to make printing out the tuple easier and also won't make directory
|
|
||||||
paths look odd """
|
def __init__(self, platform_os=None, target=None):
|
||||||
__slots__ = ()
|
self.platform = sys_type()
|
||||||
|
self.platform_os = platform_os
|
||||||
|
self.target = target
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return (str(self.platform) +"-"+
|
return (str(self.platform) +"-"+
|
||||||
|
Loading…
Reference in New Issue
Block a user