本文整理匯總了Python中installer.Installer.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Installer.__init__方法的具體用法?Python Installer.__init__怎麽用?Python Installer.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類installer.Installer
的用法示例。
在下文中一共展示了Installer.__init__方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration):
Installer.__init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration)
self.specificationFileName = os.path.join(self.tempDir, 'product_specification')
self.configurePath = os.path.join(self.tempDir, "configure.sh")
self.unconfigurePath = os.path.join(self.tempDir, "unconfigure.sh")
self.preinstallPath = os.path.join(self.tempDir, "preinstall.sh")
self.postremovePath = os.path.join(self.tempDir, "postremove.sh")
示例2: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration):
Installer.__init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration)
self.scriptDir = os.path.join(self.tempDir, "scripts")
self.preinstallPath = os.path.join(self.scriptDir, "preinstall")
self.postinstallPath = os.path.join(self.scriptDir, "postinstall")
self.preupgradePath = os.path.join(self.scriptDir, "preupgrade")
self.postupgradePath = os.path.join(self.scriptDir, "postupgrade")
self.osverstring = str(self.configuration["pfmajor"]) + "." + self.configuration["pfminor_str"]
if self.configuration["pfmajor"] == 10:
if self.configuration["pfminor"] == 4:
self.packageHelper = MacOS10_4PackageHelper(
self.stagingRootDir,
self.tempDir,
self.configuration["version"],
self.configuration["release"],
self.scriptDir,
)
elif self.configuration["pfminor"] == 5:
self.packageHelper = MacOS10_5PackageHelper(
self.stagingRootDir,
self.tempDir,
self.targetDir,
self.configuration["version"],
self.configuration["release"],
self.preinstallPath,
self.postinstallPath,
self.preupgradePath,
self.postupgradePath,
)
else:
raise scxexceptions.PlatformNotImplementedError(self.osverstring)
else:
raise scxexceptions.PlatformNotImplementedError(self.osverstring)
示例3: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration):
Installer.__init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration)
self.controlDir = os.path.join(self.stagingRootDir, 'DEBIAN')
self.controlFileName = os.path.join(self.controlDir, 'control')
self.configFileName = os.path.join(self.controlDir, 'conffiles')
self.preInstallPath = os.path.join(self.controlDir, 'preinst')
self.postInstallPath = os.path.join(self.controlDir, 'postinst')
self.preUninstallPath = os.path.join(self.controlDir, 'prerm')
self.postUninstallPath = os.path.join(self.controlDir, 'postrm')
示例4: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration):
Installer.__init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration)
self.prototypeFileName = os.path.join(self.tempDir, "prototype")
self.pkginfoFile = PKGInfoFile(self.tempDir, self.configuration)
self.depFileName = os.path.join(self.tempDir, "depend")
self.preInstallPath = os.path.join(self.tempDir, "preinstall.sh")
self.postInstallPath = os.path.join(self.tempDir, "postinstall.sh")
self.preUninstallPath = os.path.join(self.tempDir, "preuninstall.sh")
self.postUninstallPath = os.path.join(self.tempDir, "postuninstall.sh")
self.iConfigFileName = os.path.join(self.tempDir, "i.config")
self.rConfigFileName = os.path.join(self.tempDir, "r.config")
示例5: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration):
Installer.__init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration)
self.filesetName = self.configuration['short_name'] + '.rte'
self.lppNameFileName = os.path.join(self.stagingRootDir, 'lpp_name')
self.alFileName = os.path.join(self.tempDir, self.filesetName + '.al')
self.cfgfilesFileName = os.path.join(self.tempDir, self.filesetName + '.cfgfiles')
self.copyrightFileName = os.path.join(self.tempDir, self.filesetName + '.copyright')
self.inventoryFileName = os.path.join(self.tempDir, self.filesetName + '.inventory')
self.sizeFileName = os.path.join(self.tempDir, self.filesetName + '.size')
self.productidFileName = os.path.join(self.tempDir, 'productid')
self.liblppFileName = os.path.join(self.stagingRootDir, 'usr/lpp/' + self.filesetName +'/liblpp.a')
# Need to specify new file names for scripts.
self.preInstallPath = os.path.join(self.tempDir, self.filesetName + '.pre_i')
self.postInstallPath = os.path.join(self.tempDir, self.filesetName + '.config')
self.preUninstallPath = os.path.join(self.tempDir, self.filesetName + '.unconfig')
self.preUpgradePath = os.path.join(self.tempDir, self.filesetName + '.pre_rm')
示例6: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, install_config, maxy = 0, maxx = 0, iso_installer = False, rpm_path = "../stage/RPMS", log_path = "../stage/LOGS", ks_config = None):
Installer.__init__(self, install_config, maxy, maxx, iso_installer, rpm_path, log_path, ks_config)
開發者ID:Virtualization-Appliance-Marketplace,項目名稱:VAM-VMware-Photon,代碼行數:4,代碼來源:ostreeserverinstaller.py
示例7: __init__
# 需要導入模塊: from installer import Installer [as 別名]
# 或者: from installer.Installer import __init__ [as 別名]
def __init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration):
Installer.__init__(self, srcDir, targetDir, installerDir, intermediateDir, configuration)
self.specFileName = os.path.join(self.tempDir, 'scx.spec')
self.preInstallPath = os.path.join(self.tempDir, "preinstall.sh")
self.postInstallPath = os.path.join(self.tempDir, "postinstall.sh")
self.preUninstallPath = os.path.join(self.tempDir, "preuninstall.sh")