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


Python Command.__init__方法代码示例

本文整理汇总了Python中jhbuild.commands.Command.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Command.__init__方法的具体用法?Python Command.__init__怎么用?Python Command.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jhbuild.commands.Command的用法示例。


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

示例1: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('--modulesetsdir',
                     action='store', dest='modulesets_dir', default=None,
                     help=_('Modulesets directory')),
         make_option('--type',
                     action='store', dest='type', default='tarball',
                     help=_('Module type [%s] (default=tarball)' %
                            ','.join(MODULE_TYPES.keys()))),
         make_option('--deps',
                     action='store', dest='deps', default="",
                     help=_('Module dependencies (list of ":" separated '
                            'values)')),
         make_option('--version',
                     action='store', dest='version', default=None,
                     help=_('Module version (only applies to "tarball" type)')),
         make_option('--url',
                     action='store', dest='url', default=None,
                     help=_('URL of the package (only applies to "tarball" type)')),
         make_option('--md5sum',
                     action='store', dest='md5sum', default=None,
                     help=_('MD5 of the tarball (only applies to "tarball" type)')),
         make_option('--repo',
                     action='store', dest='repo', default=None,
                     help=_('Sources repository (only applies to "autotools" type)')),
         make_option('--repo-module',
                     action='store', dest='repo_module', default=None,
                     help=_('Name of the module in the repository '
                            '(only applies to "autotools" type)')),
         ])
开发者ID:ossbuild,项目名称:ossbuild-main,代码行数:32,代码来源:add_module.py

示例2: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-a', '--autogen',
                     action='store_true', dest='autogen', default=False,
                     help='always run autogen.sh'),
         make_option('-c', '--clean',
                     action='store_true', dest='clean', default=False,
                     help='run make clean before make'),
         make_option('-d', '--dist',
                     action='store_true', dest='dist', default=False,
                     help='run make dist after building'),
         make_option('--distcheck',
                     action='store_true', dest='distcheck', default=False,
                     help='run make distcheck after building'),
         make_option('-n', '--no-network',
                     action='store_true', dest='nonetwork', default=False,
                     help='skip version control update'),
         make_option('-s', '--skip', metavar='MODULES',
                     action='append', dest='skip', default=[],
                     help='treat the given modules as up to date'),
         make_option('-t', '--start-at', metavar='MODULE',
                     action='store', dest='startat', default=None,
                     help='start building at the given module'),
         make_option('-D', metavar='DATE-SPEC',
                     action='store', dest='sticky_date', default=None,
                     help='set a sticky date when checking out modules'),
         ])
开发者ID:inducer,项目名称:jhbuild,代码行数:29,代码来源:base.py

示例3: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-a', '--autogen',
                     action='store_true', dest='autogen', default=False,
                     help=_('always run autogen.sh')),
         make_option('-c', '--clean',
                     action='store_true', dest='clean', default=False,
                     help=_('run make clean before make')),
         make_option('-n', '--no-network',
                     action='store_true', dest='nonetwork', default=False,
                     help=_('skip version control update')),
         make_option('-o', '--output', metavar='DIR',
                     action='store', dest='outputdir', default=None,
                     help=_('directory to store build logs in')),
         make_option('-s', '--skip', metavar='MODULES',
                     action='append', dest='skip', default=[],
                     help=_('treat the given modules as up to date')),
         make_option('-t', '--start-at', metavar='MODULE',
                     action='store', dest='startat', default=None,
                     help=_('start building at the given module')),
         make_option('-D', metavar='DATE-SPEC',
                     action='store', dest='sticky_date', default=None,
                     help=_('set a sticky date when checking out modules')),
         make_option('-C', '--try-checkout',
                     action='store_true', dest='trycheckout', default=False,
                     help=_('try to force checkout and autogen on failure')),
         make_option('-N', '--no-poison',
                     action='store_true', dest='nopoison', default=False,
                     help=_("don't poison modules on failure")),
         make_option('-f', '--force',
                     action='store_true', dest='force_policy', default=False,
                     help=_('build even if policy says not to'))
         ])
开发者ID:rpavlik,项目名称:jhbuild-vrjuggler,代码行数:35,代码来源:tinderbox.py

示例4: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-o', '--output', metavar='FILE',
                 action='store', dest='output', default=None),
         make_option('--all-modules',
                     action='store_true', dest='list_all_modules', default=False),
         ])
开发者ID:MarFerMS,项目名称:jhbuild,代码行数:9,代码来源:extdeps.py

示例5: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-a', '--autogen',
                     action='store_true', dest='_unused', default=False,
                     help=optparse.SUPPRESS_HELP), # no longer used
         make_option('-c', '--clean',
                     action='store_true', dest='clean', default=False,
                     help=_('run make clean before make')),
         make_option('--check',
                     action='store_true', dest='check', default=False,
                     help=_('run make check after building')),
         make_option('-d', '--dist',
                     action='store_true', dest='dist', default=False,
                     help=_('run make dist after building')),
         make_option('--distcheck',
                     action='store_true', dest='distcheck', default=False,
                     help=_('run make distcheck after building')),
         make_option('--ignore-suggests',
                     action='store_true', dest='ignore_suggests', default=False,
                     help=_('ignore all soft-dependencies')),
         make_option('-n', '--no-network',
                     action='store_true', dest='nonetwork', default=False,
                     help=_('skip version control update')),
         make_option('-q', '--quiet',
                     action='store_true', dest='quiet', default=False,
                     help=_('quiet (no output)')),
         make_option('-s', '--skip', metavar='MODULES',
                     action='append', dest='skip', default=[],
                     help=_('treat the given modules as up to date')),
         make_option('-t', '--start-at', metavar='MODULE',
                     action='store', dest='startat', default=None,
                     help=_('start building at the given module')),
         make_option('--tags',
                     action='append', dest='tags', default=[],
                     help=_('build only modules with the given tags')),
         make_option('-D', metavar='DATE-SPEC',
                     action='store', dest='sticky_date', default=None,
                     help=_('set a sticky date when checking out modules')),
         make_option('-x', '--no-xvfb',
                     action='store_true', dest='noxvfb', default=False,
                     help=_('run tests in real X and not in Xvfb')),
         make_option('-C', '--try-checkout',
                     action='store_true', dest='trycheckout', default=False,
                     help=_('try to force checkout and autogen on failure')),
         make_option('-N', '--no-poison',
                     action='store_true', dest='nopoison', default=False,
                     help=_("don't poison modules on failure")),
         make_option('-f', '--force',
                     action='store_true', dest='force_policy', default=False,
                     help=_('build even if policy says not to')),
         make_option('--build-optional-modules',
                     action='store_true', dest='build_optional_modules', default=False,
                     help=_('also build soft-dependencies that could be skipped')),
         make_option('--min-age', metavar='TIME-SPEC',
                     action='store', dest='min_age', default=None,
                     help=_('skip modules installed less than the given time ago')),
         make_option('--nodeps',
                     action='store_false', dest='check_sysdeps', default=None,
                     help=_('ignore missing system dependencies')),
         ])
开发者ID:cheatiiit,项目名称:jhbuild-1,代码行数:62,代码来源:base.py

示例6: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('--installed',
                     action='store_true', dest='installed', default=False,
                     help=_('only display information for installed modules. '
                            'This will not list system dependencies. If one or more '
                            'module names are specified and at least one module is '
                            'not installed, then the command will return 1.'))
         ])
开发者ID:aissat,项目名称:jhbuild,代码行数:11,代码来源:info.py

示例7: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-s', '--skip', metavar='MODULES',
                     action='append', dest='skip', default=[],
                     help=_('treat the given modules as up to date')),
         make_option('-t', '--start-at', metavar='MODULE',
                     action='store', dest='startat', default=None,
                     help=_('start building at the given module')),
         ])
开发者ID:MarFerMS,项目名称:jhbuild,代码行数:11,代码来源:clean.py

示例8: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(
         self,
         [
             make_option(
                 "-r",
                 "--show-revision",
                 action="store_true",
                 dest="show_rev",
                 default=False,
                 help=_("show which revision will be built"),
             ),
             make_option(
                 "-s",
                 "--skip",
                 metavar="MODULES",
                 action="append",
                 dest="skip",
                 default=[],
                 help=_("treat the given modules as up to date"),
             ),
             make_option(
                 "-t",
                 "--start-at",
                 metavar="MODULE",
                 action="store",
                 dest="startat",
                 default=None,
                 help=_("start list at the given module"),
             ),
             make_option(
                 "--tags", action="append", dest="tags", default=[], help=_("build only modules with the given tags")
             ),
             make_option(
                 "--ignore-suggests",
                 action="store_true",
                 dest="ignore_suggests",
                 default=False,
                 help=_("ignore all soft-dependencies"),
             ),
             make_option(
                 "--list-optional-modules",
                 action="store_true",
                 dest="list_optional_modules",
                 default=False,
                 help=_("also list soft-dependencies that could be skipped"),
             ),
             make_option(
                 "-a",
                 "--all-modules",
                 action="store_true",
                 dest="list_all_modules",
                 default=False,
                 help=_("list all modules, not only those that would be built"),
             ),
         ],
     )
开发者ID:jon-turney,项目名称:jhbuild,代码行数:59,代码来源:base.py

示例9: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('--dependencies',
                     action='store_true', dest='dependencies', default=False,
                     help=_('display dependency path next to modules')),
         make_option('--direct',
                     action='store_true', dest='direct', default=False,
                     help=_('limit display to modules directly depending on given module'))
         ])
开发者ID:ylatuya,项目名称:jhbuild,代码行数:11,代码来源:rdepends.py

示例10: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('--honour-config',
                     action='store_true', dest='honour_config', default=False,
                     help=_('honour the makeclean setting in config file')),
         make_option('--distclean',
                     action='store_true', dest='distclean', default=False,
                     help=_('completely clean source tree')),
         ])
开发者ID:drayanaindra,项目名称:jhbuild,代码行数:11,代码来源:base.py

示例11: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         #FIXME: Don't hardcode default values
         make_option('--moduleset', metavar='MODULE',
                     action='store', dest='moduleset', default = None,
                     help=_('name of the moduleset')),
         make_option('--modulesetsdir', metavar='MODULE',
                     action='store', dest='modulesets_dir', default = None,
                     help=_('Directory lookup for available modules ')),
         ])
     self.modulesets = []
开发者ID:ossbuild,项目名称:ossbuild-main,代码行数:13,代码来源:update_moduleset.py

示例12: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-o', '--output', metavar='FILE',
                 action='store', dest='output', default=None),
         make_option('--devhelp-dirname', metavar='DIR',
                 action='store', dest='devhelp_dirname', default=None),
         make_option('--no-cache',
                 action='store_true', dest='nocache', default=False),
         make_option('--all-modules',
                     action='store_true', dest='list_all_modules', default=False),
         ])
开发者ID:MarFerMS,项目名称:jhbuild,代码行数:13,代码来源:twoninetynine.py

示例13: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('--dump',
                     action='store_true', default = False,
                     help=_('Machine readable list of missing sysdeps')),
         make_option('--dump-all',
                     action='store_true', default = False,
                     help=_('Machine readable list of all sysdeps')),
         make_option('--install',
                     action='store_true', default = False,
                     help=_('Install pkg-config modules via system'))])
开发者ID:aissat,项目名称:jhbuild,代码行数:13,代码来源:sysdeps.py

示例14: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-a', '--autogen',
                     action='store_true', dest='autogen', default=False,
                     help=_('always run autogen.sh')),
         make_option('-c', '--clean',
                     action='store_true', dest='clean', default=False,
                     help=_('run make clean before make')),
         make_option('--check',
                     action='store_true', dest='check', default=False,
                     help=_('run make check after building')),
         make_option('-q', '--quiet',
                     action='store_true', dest='quiet', default=False,
                     help=_('quiet (no output)')),
         ])
开发者ID:zhw2101024,项目名称:jhbuild,代码行数:17,代码来源:make.py

示例15: __init__

# 需要导入模块: from jhbuild.commands import Command [as 别名]
# 或者: from jhbuild.commands.Command import __init__ [as 别名]
 def __init__(self):
     Command.__init__(self, [
         make_option('-o', '--output', metavar='FILE',
                 action='store', dest='output', default=None),
         make_option('--bugs-file', metavar='BUGFILE',
                 action='store', dest='bugfile', default=None),
         make_option('--false-positives-file', metavar='FILE',
                 action='store', dest='falsepositivesfile', default=None),
         make_option('--devhelp-dirname', metavar='DIR',
                 action='store', dest='devhelp_dirname', default=None),
         make_option('--cache', metavar='FILE',
                 action='store', dest='cache', default=None),
         make_option('--all-modules',
                     action='store_true', dest='list_all_modules', default=False),
         make_option('--check', metavar='CHECK',
                     action='append', dest='checks', default=[],
                     help=_('check to perform')),
         ])
开发者ID:drayanaindra,项目名称:jhbuild,代码行数:20,代码来源:goalreport.py


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