本文整理汇总了Python中cerbero.packages.PackagerBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PackagerBase.__init__方法的具体用法?Python PackagerBase.__init__怎么用?Python PackagerBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cerbero.packages.PackagerBase
的用法示例。
在下文中一共展示了PackagerBase.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, config, package, store):
PackagerBase.__init__(self, config, package, store)
self.package_prefix = ''
self.package_prefix = self._package_prefix(self.package)
self.full_package_name = self._full_package_name()
self.packager = self.config.packager
self._check_packager()
示例2: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, config, package, store):
PackagerBase.__init__(self, config, package, store)
self.package = package
self.prefix = config.prefix
self.package_prefix = ""
if self.config.packages_prefix is not None:
self.package_prefix = "%s-" % self.config.packages_prefix
示例3: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, config, package, store):
PackagerBase.__init__(self, config, package, store)
self._with_wine = config.platform != Platform.WINDOWS
self.wix_prefix = get_wix_prefix()
# Init wix wine prefix in the case of using it.
self.wix_wine_prefix = None
self.tmpdir = None
示例4: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, package, name, desc, uuid):
self.package = Package(package.config, package.store, None)
self.package.name = name
self.package.shortdesc = desc
self.package.version = package.version
self.package.sdk_version = package.sdk_version
self.package.uuid = uuid
self.package.deps = []
self.package.org = package.org
self.package.install_dir = package.install_dir
self.package.osx_framework_library = package.osx_framework_library
PackagerBase.__init__(self, package.config, self.package, package.store)
示例5: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, package, pkgname, desc, uuid):
self.package = Package(package.config, package.store, None)
self.package.name = pkgname
self.package.shortdesc = desc
self.package.version = package.version
self.package.sdk_version = package.sdk_version
self.package.uuid = uuid
self.package.deps = []
self.package.org = package.org
self.package.install_dir = package.install_dir
self.package.osx_framework_library = package.osx_framework_library
self.package.resources_preinstall = package.resources_preinstall
self.package.resources_postinstall = package.resources_postinstall
self.package.__file__ = package.__file__
PackagerBase.__init__(self, package.config, self.package, package.store)
示例6: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, config, package, store):
PackagerBase.__init__(self, config, package, store)
self._with_wine = config.platform != Platform.WINDOWS
self.wix_prefix = get_wix_prefix()
示例7: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, config, package, store):
PackagerBase.__init__(self, config, package, store)
示例8: __init__
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import __init__ [as 别名]
def __init__(self, config, package, store):
PackagerBase.__init__(self, config, package, store)
self.bundle_name = "%s-%s-%s" %(self.package.name, self.package.version, self.config.arch)
if not hasattr(self.package, "desktop_file"):
raise FatalError("Can not create a linux bundle if the package does "
"not have a 'desktop_file' property set")