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


Python archive_util.check_archive_formats方法代码示例

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


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

示例1: finalize_options

# 需要导入模块: from distutils import archive_util [as 别名]
# 或者: from distutils.archive_util import check_archive_formats [as 别名]
def finalize_options(self):
        if self.manifest is None:
            self.manifest = "MANIFEST"
        if self.template is None:
            self.template = "MANIFEST.in"

        self.ensure_string_list('formats')
        if self.formats is None:
            try:
                self.formats = [self.default_format[os.name]]
            except KeyError:
                raise DistutilsPlatformError, \
                      "don't know how to create source distributions " + \
                      "on platform %s" % os.name

        bad_format = archive_util.check_archive_formats(self.formats)
        if bad_format:
            raise DistutilsOptionError, \
                  "unknown archive format '%s'" % bad_format

        if self.dist_dir is None:
            self.dist_dir = "dist" 
开发者ID:glmcdona,项目名称:meddle,代码行数:24,代码来源:sdist.py

示例2: finalize_options

# 需要导入模块: from distutils import archive_util [as 别名]
# 或者: from distutils.archive_util import check_archive_formats [as 别名]
def finalize_options(self):
        if self.manifest is None:
            self.manifest = "MANIFEST"
        if self.template is None:
            self.template = "MANIFEST.in"

        self.ensure_string_list('formats')
        if self.formats is None:
            try:
                self.formats = [self.default_format[os.name]]
            except KeyError:
                raise DistutilsPlatformError(
                      "don't know how to create source distributions "
                      "on platform %s" % os.name)

        bad_format = archive_util.check_archive_formats(self.formats)
        if bad_format:
            raise DistutilsOptionError(
                  "unknown archive format '%s'" % bad_format)

        if self.dist_dir is None:
            self.dist_dir = "dist" 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:24,代码来源:sdist.py

示例3: finalize_options

# 需要导入模块: from distutils import archive_util [as 别名]
# 或者: from distutils.archive_util import check_archive_formats [as 别名]
def finalize_options (self):
        if self.manifest is None:
            self.manifest = "MANIFEST"
        if self.template is None:
            self.template = "MANIFEST.in"

        self.ensure_string_list('formats')
        if self.formats is None:
            try:
                self.formats = [self.default_format[os.name]]
            except KeyError:
                raise DistutilsPlatformError, \
                      "don't know how to create source distributions " + \
                      "on platform %s" % os.name

        bad_format = archive_util.check_archive_formats(self.formats)
        if bad_format:
            raise DistutilsOptionError, \
                  "unknown archive format '%s'" % bad_format

        if self.dist_dir is None:
            self.dist_dir = "dist" 
开发者ID:ofermend,项目名称:medicare-demo,代码行数:24,代码来源:sdist.py

示例4: finalize_options

# 需要导入模块: from distutils import archive_util [as 别名]
# 或者: from distutils.archive_util import check_archive_formats [as 别名]
def finalize_options(self):
        if self.manifest is None:
            self.manifest = "MANIFEST"
        if self.template is None:
            self.template = "MANIFEST.in"

        self.ensure_string_list('formats')

        bad_format = archive_util.check_archive_formats(self.formats)
        if bad_format:
            raise DistutilsOptionError(
                  "unknown archive format '%s'" % bad_format)

        if self.dist_dir is None:
            self.dist_dir = "dist" 
开发者ID:CedricGuillemet,项目名称:Imogen,代码行数:17,代码来源:sdist.py


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