當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。