• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python base.BaseBootstrapper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mozboot.base.BaseBootstrapper的典型用法代码示例。如果您正苦于以下问题:Python BaseBootstrapper类的具体用法?Python BaseBootstrapper怎么用?Python BaseBootstrapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BaseBootstrapper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

    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,代码行数:33,代码来源:fedora.py


示例2: __init__

    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,代码行数:29,代码来源:freebsd.py


示例3: __init__

    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,代码行数:7,代码来源:debian.py


示例4: __init__

    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,代码行数:7,代码来源:osx.py


示例5: __init__

    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,代码行数:34,代码来源:freebsd.py


示例6: __init__

    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,代码行数:34,代码来源:freebsd.py


示例7: __init__

    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,代码行数:26,代码来源:centos.py


示例8: __init__

    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,代码行数:9,代码来源:osx.py


示例9: __init__

    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,代码行数:9,代码来源:osx.py


示例10: __init__

    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,代码行数:9,代码来源:debian.py


示例11: __init__

 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,代码行数:10,代码来源:windows.py


示例12: __init__

 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,代码行数:13,代码来源:windows.py


示例13: __init__

    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,代码行数:15,代码来源:freebsd.py


示例14: __init__

    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,代码行数:18,代码来源:openbsd.py


示例15: __init__

    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,代码行数:19,代码来源:openbsd.py


示例16: __init__

    def __init__(self, version, **kwargs):
        BaseBootstrapper.__init__(self, **kwargs)

        self.packages = [
            'mercurial',
            'autoconf-2.13',
            'gmake',
            'gtar',
            'wget',
            'unzip',
            'zip',
        ]

        self.browser_packages = [
            'llvm',
            'yasm',
            'gtk+2',
            'gtk+3',
            'dbus-glib',
            'pulseaudio',
        ]
开发者ID:MekliCZ,项目名称:positron,代码行数:21,代码来源:openbsd.py


示例17: __init__

    def __init__(self, version, dist_id, **kwargs):
        BaseBootstrapper.__init__(self, **kwargs)

        self.version = version
        self.dist_id = dist_id

        self.group_packages = [
            'C Development Tools and Libraries',
        ]

        self.packages = [
            'autoconf213',
            'mercurial',
        ]

        self.browser_group_packages = [
            'GNOME Software Development',
        ]

        self.browser_packages = [
            'alsa-lib-devel',
            'gcc-c++',
            'GConf2-devel',
            'glibc-static',
            'gtk2-devel',  # it's optional in Fedora 20's GNOME Software
                           # Development group.
            'libstdc++-static',
            'libXt-devel',
            'mesa-libGL-devel',
            'pulseaudio-libs-devel',
            'wireless-tools-devel',
            'yasm',
        ]

        self.mobile_android_packages = [
            'ant',
            'ncurses-devel.i686',
            'libstdc++.i686',
            'zlib-devel.i686',
        ]
开发者ID:kilikkuo,项目名称:gecko-dev,代码行数:40,代码来源:fedora.py


示例18: __init__

    def __init__(self, version):
        BaseBootstrapper.__init__(self)
        self.version = int(version.split(".")[0])

        self.packages = [
            ("autoconf-2.13", "autoconf213"),
            ("dbus-glib",),
            ("gmake",),
            ("gstreamer-plugins",),
            ("gtk-2", "gtk20"),
            ("libGL",),
            ("libIDL",),
            ("libv4l",),
            ("mercurial",),
            ("pulseaudio",),
            ("yasm",),
            ("zip",),
        ]

        # using clang since 9.0
        if self.version < 9:
            self.packages.append(("gcc",))
开发者ID:jpetrell,项目名称:gecko-dev,代码行数:22,代码来源:freebsd.py


示例19: which

 def which(self, name):
     return BaseBootstrapper.which(self, name + '.exe')
开发者ID:mozilla,项目名称:positron-spidernode,代码行数:2,代码来源:mozillabuild.py


示例20: __init__

 def __init__(self, no_interactive=False):
     BaseBootstrapper.__init__(self, no_interactive=no_interactive)
     print("mach bootstrap is not fully implemented in MozillaBuild")
开发者ID:mozilla,项目名称:positron-spidernode,代码行数:3,代码来源:mozillabuild.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python util.get_state_dir函数代码示例发布时间:2022-05-27
下一篇:
Python repository.resolve_trees_to_uris函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap