当前位置: 首页>>代码示例>>Python>>正文


Python Installer.__init__方法代码示例

本文整理汇总了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")
开发者ID:host1812,项目名称:scx_plugin_public,代码行数:9,代码来源:hpuxpackage.py

示例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)
开发者ID:host1812,项目名称:scx_plugin_public,代码行数:36,代码来源:macospackage.py

示例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')
开发者ID:host1812,项目名称:scx_plugin_public,代码行数:12,代码来源:linuxdeb.py

示例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")
开发者ID:host1812,项目名称:scx_plugin_public,代码行数:13,代码来源:sunospkg.py

示例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')
开发者ID:host1812,项目名称:scx_plugin_public,代码行数:18,代码来源:aixlpp.py

示例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")
开发者ID:host1812,项目名称:scx_plugin_public,代码行数:8,代码来源:linuxrpm.py


注:本文中的installer.Installer.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。