diff --git a/architecture.py b/architecture.py new file mode 100644 index 0000000..38e1317 --- /dev/null +++ b/architecture.py @@ -0,0 +1,20 @@ +import os + +import distribution + + +class Architecture: + def __init__(self, name): + self.name = name + self.distribution = distribution.Distribution(self) + # TODO subsystems + self.subsystems = {} + + def __str__(self): + lines = [ + f'Name: {self.name}', + ] + return os.linesep.join(lines) + +X86 = Architecture('x86_64') +I86 = Architecture('i686') diff --git a/distribution.py b/distribution.py new file mode 100644 index 0000000..4b9303d --- /dev/null +++ b/distribution.py @@ -0,0 +1,12 @@ +import os + + +class Distribution: + def __init__(self, architecture): + self.architecture = architecture + + def __str__(self): + lines = [ + f'Architecture: {self.architecture.name}', + ] + return os.linesep.join(lines) diff --git a/subsystem.py b/subsystem.py new file mode 100644 index 0000000..90421e7 --- /dev/null +++ b/subsystem.py @@ -0,0 +1,16 @@ +import os + +MAIN = 'msys' + + +class SubSystem: + def __init__(self, architecture): + self.architecture = architecture + self.name = name + + def __str__(self): + lines = [ + f'Architecture: {self.architecture.name}', + f' Name: {self.name}', + ] + return os.linesep.join(lines)