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


Python build_py.finalize_options函数代码示例

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


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

示例1: finalize_options

    def finalize_options(self):
        # Update build_lib settings from the build command to always put
        # build files in platform-specific subdirectories of build/, even
        # for projects with only pure-Python source (this is desirable
        # specifically for support of multiple Python version).
        build_cmd = self.get_finalized_command('build')
        platlib_dir = _get_platlib_dir(build_cmd)

        build_cmd.build_purelib = platlib_dir
        build_cmd.build_lib = platlib_dir
        self.build_lib = platlib_dir

        SetuptoolsBuildPy.finalize_options(self)
开发者ID:Punyaslok,项目名称:astropy-helpers,代码行数:13,代码来源:build_py.py

示例2: finalize_options

    def finalize_options(self):
        build_py.finalize_options(self)
        self.ensure_filename('rcc')
        self.ensure_filename('uic')

        if self.rcc is None:
            self.rcc = which('pyrcc4')
            if self.rcc is None:
                self.rcc = which('pyrcc')
            if self.rcc is None:
                raise RuntimeError("Error, cannot find pyrcc program")
        if self.uic is None:
            self.uic = which('pyuic4')
            if self.uic is None:
                self.uic = which('pyuic')
            if self.uic is None:
                raise RuntimeError("Error, cannot find pyuic program")
开发者ID:PierreBdR,项目名称:point_tracker,代码行数:17,代码来源:setup.py

示例3: update_package_data

def update_package_data(distribution):
    """update package_data to catch changes during setup"""
    build_py = distribution.get_command_obj('build_py')
    # distribution.package_data = find_package_data()
    # re-init build_py options which load package_data
    build_py.finalize_options()
开发者ID:qiyangduan,项目名称:cust_seg,代码行数:6,代码来源:setup.py

示例4: finalize_options

 def finalize_options(self):
     build.finalize_options(self)
     # The build isn't platform-independent
     if self.build_lib == self.build_purelib:
         self.build_lib = self.build_platlib
开发者ID:RazerM,项目名称:llvmlite,代码行数:5,代码来源:setup.py

示例5: update_package_data

def update_package_data(distribution):
    """Modify the ``package_data`` to catch changes during setup."""
    build_py = distribution.get_command_obj("build_py")
    build_py.finalize_options()    # Updates package_data
开发者ID:tjduigna,项目名称:exatomic,代码行数:4,代码来源:setup.py

示例6: finalize_options

 def finalize_options(self):
     _build_py.finalize_options(self)
开发者ID:saeedhadi,项目名称:ripyl,代码行数:2,代码来源:setup.py


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