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


Python BaseBootstrapper.__init__方法代码示例

本文整理汇总了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')
开发者ID:MekliCZ,项目名称:positron,代码行数:31,代码来源:freebsd.py

示例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
开发者ID:franzks,项目名称:gecko-dev,代码行数:9,代码来源:debian.py

示例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',
        ]
开发者ID:AtulKumar2,项目名称:gecko-dev,代码行数:35,代码来源:fedora.py

示例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.')
开发者ID:vvuk,项目名称:mozilla-central,代码行数:9,代码来源:osx.py

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

示例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')
开发者ID:luke-chang,项目名称:gecko-1,代码行数:36,代码来源:freebsd.py

示例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",
        ]
开发者ID:yangkkokk,项目名称:gecko-dev,代码行数:28,代码来源:centos.py

示例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]
开发者ID:hibrium,项目名称:Pale-Moon,代码行数:11,代码来源:osx.py

示例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
开发者ID:carriercomm,项目名称:system-addons,代码行数:11,代码来源:debian.py

示例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]
开发者ID:Wafflespeanut,项目名称:gecko-dev,代码行数:11,代码来源:osx.py

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

示例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."
开发者ID:carriercomm,项目名称:gecko-dev,代码行数:15,代码来源:windows.py

示例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")
开发者ID:cliqz-oss,项目名称:browser-f,代码行数:17,代码来源:freebsd.py

示例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',
        ]
开发者ID:Andrel322,项目名称:gecko-dev,代码行数:20,代码来源:openbsd.py

示例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",
        ]
开发者ID:jpetrell,项目名称:gecko-dev,代码行数:21,代码来源:openbsd.py


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