本文整理汇总了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")