當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。