IGN:Move building of linux 64 bit binary to a VM

This commit is contained in:
Kovid Goyal 2009-10-27 12:41:58 -06:00
parent f22b9453ae
commit 138a7c53ad

View File

@ -6,10 +6,9 @@ __license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
import os
from setup.installer import VMInstaller from setup.installer import VMInstaller
from setup import Command, installer_name from setup import Command
class Linux32(VMInstaller): class Linux32(VMInstaller):
@ -21,17 +20,12 @@ class Linux32(VMInstaller):
FREEZE_COMMAND = 'linux_freeze' FREEZE_COMMAND = 'linux_freeze'
class Linux64(Command): class Linux64(Linux32):
description = 'Build 64bit linux binary installer' description = 'Build 64bit linux binary installer'
VM_NAME = 'gentoo64_build'
sub_commands = ['linux_freeze'] VM = '/vmware/bin/gentoo64_build'
IS_64_BIT = True
def run(self, opts):
installer = installer_name('tar.bz2', True)
if not os.path.exists(installer):
raise Exception('Failed to build installer '+installer)
return os.path.basename(installer)
class Linux(Command): class Linux(Command):