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


Python build.finalize_options方法代码示例

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


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

示例1: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
        if self.parallel:
            try:
                self.parallel = int(self.parallel)
            except ValueError:
                raise ValueError("--parallel/-j argument must be an integer")
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
开发者ID:Frank-qlu,项目名称:recruit,代码行数:14,代码来源:build.py

示例2: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
        build.finalize_options(self)
        # self.set_undefined_options("build_ext", ("download_dir", "download_dir"))
        if self.download_dir:
            openfst_tar_gz = os.path.join(self.download_dir, self.openfst_basename)
            assert os.path.isfile(openfst_tar_gz), (
                "File %s does not exist" % openfst_tar_gz
            )
        else:
            self.download_dir = self.build_temp 
开发者ID:jpuigcerver,项目名称:openfst-python,代码行数:12,代码来源:setup.py

示例3: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
        build_scripts = self.build_scripts
        old_build.finalize_options(self)
        plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
        if build_scripts is None:
            self.build_scripts = os.path.join(self.build_base,
                                              'scripts' + plat_specifier) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:9,代码来源:build.py

示例4: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
        if not os.path.exists('./xcffib'):
            print("It looks like you need to generate the binding.")
            print("please run 'make xcffib' or 'make check'.")
            sys.exit(1)
        build.finalize_options(self) 
开发者ID:tych0,项目名称:xcffib,代码行数:8,代码来源:setup.py

示例5: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
    _build.finalize_options(self)
    if self.build_doc is None:
      self.build_doc = "%s/doc" % self.build_base 
开发者ID:apache,项目名称:qpid-python,代码行数:6,代码来源:setup.py

示例6: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
        _build_py.finalize_options(self)
        self.set_undefined_options(
            'build',
            ('rpm_version', 'rpm_version')
        ) 
开发者ID:candlepin,项目名称:virt-who,代码行数:8,代码来源:setup.py

示例7: finalize_options

# 需要导入模块: from distutils.command.build import build [as 别名]
# 或者: from distutils.command.build.build import finalize_options [as 别名]
def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        build.finalize_options(self) 
开发者ID:apple,项目名称:ccs-pyosxframeworks,代码行数:5,代码来源:setup.py


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