本文整理汇总了Python中mozboot.base.BaseBootstrapper.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BaseBootstrapper.__init__方法的具体用法?Python BaseBootstrapper.__init__怎么用?Python BaseBootstrapper.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mozboot.base.BaseBootstrapper
的用法示例。
在下文中一共展示了BaseBootstrapper.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, flavor, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = int(version.split('.')[0])
self.flavor = flavor.lower()
self.packages = [
'autoconf213',
'gmake',
'mercurial',
'pkgconf',
'zip',
]
self.browser_packages = [
'dbus-glib',
'gtk2',
'gtk3',
'libGL',
'pulseaudio',
'v4l_compat',
'yasm',
]
if self.flavor == 'dragonfly':
self.packages.append('unzip')
# gcc in base is too old
if self.flavor == 'freebsd' and self.version < 9:
self.browser_packages.append('gcc')
示例2: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, dist_id):
BaseBootstrapper.__init__(self)
self.version = version
self.dist_id = dist_id
self.packages = self.COMMON_PACKAGES + self.DISTRO_PACKAGES
示例3: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, dist_id, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = version
self.dist_id = dist_id
self.group_packages = [
'Development Tools',
'Development Libraries',
]
self.packages = [
'autoconf213',
'mercurial',
]
self.browser_group_packages = [
'GNOME Software Development',
]
self.browser_packages = [
'alsa-lib-devel',
'gcc-c++',
'glibc-static',
'gstreamer-devel',
'gstreamer-plugins-base-devel',
'libstdc++-static',
'libXt-devel',
'mesa-libGL-devel',
'pulseaudio-libs-devel',
'wireless-tools-devel',
'yasm',
]
示例4: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version):
BaseBootstrapper.__init__(self)
self.os_version = StrictVersion(version)
if self.os_version < StrictVersion('10.6'):
raise Exception('OS X 10.6 or above is required.')
示例5: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, flavor, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = int(version.split('.')[0])
self.flavor = flavor.lower()
self.packages = [
'autoconf213',
'cargo',
'gmake',
'gtar',
'mercurial',
'pkgconf',
'rust',
'watchman',
'zip',
]
self.browser_packages = [
'dbus-glib',
'gconf2',
'gtk2',
'gtk3',
'libGL',
'pulseaudio',
'v4l_compat',
'yasm',
]
if not self.which('unzip'):
self.packages.append('unzip')
# GCC 4.2 or Clang 3.4 in base are too old
if self.flavor == 'freebsd' and self.version < 11:
self.browser_packages.append('gcc')
示例6: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, flavor, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = int(version.split('.')[0])
self.flavor = flavor.lower()
self.packages = [
'autoconf213',
'gmake',
'gtar',
'mercurial',
'npm',
'pkgconf',
'py%s%s-sqlite3' % sys.version_info[0:2],
'rust',
'watchman',
'zip',
]
self.browser_packages = [
'dbus-glib',
'gconf2',
'gtk2',
'gtk3',
'mesa-dri', # depends on llvm*
'pulseaudio',
'v4l_compat',
'yasm',
]
if not self.which('as'):
self.packages.append('binutils')
if not self.which('unzip'):
self.packages.append('unzip')
示例7: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, dist_id):
BaseBootstrapper.__init__(self)
self.version = version
self.dist_id = dist_id
self.group_packages = ["Development Tools", "Development Libraries", "GNOME Software Development"]
self.packages = ["autoconf213", "curl-devel", "mercurial"]
self.browser_group_packages = ["GNOME Software Development"]
self.browser_packages = [
"alsa-lib-devel",
"dbus-glib-devel",
"glibc-static",
"gstreamer-devel",
"gstreamer-plugins-base-devel",
"gtk2-devel",
"libstdc++-static",
"libXt-devel",
"mesa-libGL-devel",
"pulseaudio-libs-devel",
"wireless-tools-devel",
"yasm",
]
示例8: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version):
BaseBootstrapper.__init__(self)
self.os_version = StrictVersion(version)
if self.os_version < StrictVersion("10.6"):
raise Exception("OS X 10.6 or above is required.")
self.minor_version = version.split(".")[1]
示例9: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, dist_id, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = version
self.dist_id = dist_id
self.packages = self.COMMON_PACKAGES + self.DISTRO_PACKAGES
self.browser_packages = self.BROWSER_COMMON_PACKAGES + self.BROWSER_DISTRO_PACKAGES
self.mobile_android_packages = self.MOBILE_ANDROID_COMMON_PACKAGES + self.MOBILE_ANDROID_DISTRO_PACKAGES
示例10: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.os_version = StrictVersion(version)
if self.os_version < StrictVersion('10.6'):
raise Exception('OS X 10.6 or above is required.')
self.minor_version = version.split('.')[1]
示例11: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, **kwargs):
if 'MOZ_WINDOWS_BOOTSTRAP' not in os.environ or os.environ['MOZ_WINDOWS_BOOTSTRAP'] != '1':
raise NotImplementedError('Bootstrap support for Windows is under development. For now, use MozillaBuild '
'to set up a build environment on Windows. If you are testing Windows Bootstrap support, '
'try `export MOZ_WINDOWS_BOOTSTRAP=1`')
BaseBootstrapper.__init__(self, **kwargs)
if not self.which('pacman'):
raise NotImplementedError('The Windows bootstrapper only works with msys2 with pacman. Get msys2 at '
'http://msys2.github.io/')
print 'Using an experimental bootstrapper for Windows.'
示例12: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, **kwargs):
if "MOZ_WINDOWS_BOOTSTRAP" not in os.environ or os.environ["MOZ_WINDOWS_BOOTSTRAP"] != "1":
raise NotImplementedError(
"Bootstrap support for Windows is under development. For now, use MozillaBuild "
"to set up a build environment on Windows. If you are testing Windows Bootstrap support, "
"try `export MOZ_WINDOWS_BOOTSTRAP=1`"
)
BaseBootstrapper.__init__(self, **kwargs)
if not self.which("pacman"):
raise NotImplementedError(
"The Windows bootstrapper only works with msys2 with pacman. Get msys2 at " "http://msys2.github.io/"
)
print "Using an experimental bootstrapper for Windows."
示例13: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version, flavor, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = int(version.split(".")[0])
self.flavor = flavor.lower()
self.packages = ["autoconf213", "gmake", "gtar", "mercurial", "pkgconf", "zip"]
self.browser_packages = ["dbus-glib", "gconf2", "gtk2", "gtk3", "libGL", "pulseaudio", "v4l_compat", "yasm"]
if not self.which("unzip"):
self.packages.append("unzip")
# GCC 4.2 or Clang 3.4 in base are too old
if self.flavor == "freebsd" and self.version < 11:
self.browser_packages.append("gcc")
示例14: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version):
BaseBootstrapper.__init__(self)
self.packages = [
'mercurial',
'llvm',
'autoconf-2.13',
'yasm',
'gtk+2',
'dbus-glib',
'gstreamer-plugins-base',
'pulseaudio',
'gmake',
'gtar',
'wget',
'unzip',
'zip',
]
示例15: __init__
# 需要导入模块: from mozboot.base import BaseBootstrapper [as 别名]
# 或者: from mozboot.base.BaseBootstrapper import __init__ [as 别名]
def __init__(self, version):
BaseBootstrapper.__init__(self)
self.packages = [
"mercurial",
"llvm",
"autoconf-2.13",
"yasm",
"gtk+2",
"dbus-glib",
"gstreamer-plugins-base",
"pulseaudio",
"libIDL",
"gmake",
"gtar",
"wget",
"unzip",
"zip",
]