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


Python install.finalize_options方法代码示例

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


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

示例1: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        self.distribution.data_files.append((os.path.join(self.sysconfdir, 'pcocc'),
                                             glob.glob('confs/*.yaml')))
        self.distribution.data_files.append((os.path.join(self.sysconfdir, 'pcocc/helpers/examples/'),
                                             glob.glob('helpers/examples/*')))
        self.distribution.data_files.append((os.path.join(self.mandir, 'man1'),
                                             glob.glob('docs/build/man/*.1')))
        self.distribution.data_files.append((os.path.join(self.mandir, 'man5'),
                                             glob.glob('docs/build/man/*.5')))
        self.distribution.data_files.append((os.path.join(self.mandir, 'man7'),
                                             glob.glob('docs/build/man/*.7')))

        self.distribution.data_files.append((os.path.join(self.sysconfdir, 'slurm/lua.d'),
                                             ['plugins/slurm/vm-setup.lua']))
        if self.unitdir:
            self.distribution.data_files+=[(self.unitdir, ['dist/pkeyd.service'])]

        self.distribution.data_files += recursive_scan_data_files(self.pkgdocdir, 'docs/build/html/')

        install.finalize_options(self) 
开发者ID:cea-hpc,项目名称:pcocc,代码行数:22,代码来源:setup.py

示例2: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        _install.finalize_options(self)

        install_suffix = os.path.relpath(
            self.install_lib, self.install_libbase,
        )
        if install_suffix == '.':
            distutils.log.info('skipping install of .pth during easy-install')
        elif install_suffix == self.extra_path[1]:
            self.install_lib = self.install_libbase
            distutils.log.info(
                "will install .pth to '%s.pth'",
                os.path.join(self.install_lib, self.extra_path[0]),
            )
        else:
            raise AssertionError(
                'unexpected install_suffix',
                self.install_lib, self.install_libbase, install_suffix,
            ) 
开发者ID:asottile,项目名称:future-fstrings,代码行数:21,代码来源:setup.py

示例3: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        if not self.large_data_dir is None:
            self.large_data_dir = os.path.abspath(os.path.expanduser(self.large_data_dir))

        install.finalize_options(self) 
开发者ID:gregreen,项目名称:dustmaps,代码行数:7,代码来源:setup.py

示例4: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        install_command.finalize_options(self) 
开发者ID:orbingol,项目名称:NURBS-Python,代码行数:4,代码来源:setup.py

示例5: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
    install.finalize_options(self)
    if self.distribution.has_ext_modules():
      self.install_lib = self.install_platlib 
开发者ID:tensorflow,项目名称:lingvo,代码行数:6,代码来源:setup.py

示例6: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret 
开发者ID:ryfeus,项目名称:lambda-packs,代码行数:7,代码来源:setup.py

示例7: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
    install.finalize_options(self)
    self.install_lib = self.install_platlib 
开发者ID:tensorflow,项目名称:data-validation,代码行数:5,代码来源:setup.py

示例8: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install 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

示例9: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
            _bdist_wheel.finalize_options(self)
            # Mark us as not a pure python package (we have platform specific C/C++ code)
            self.root_is_pure = False 
开发者ID:messense,项目名称:rocketmq-python,代码行数:6,代码来源:setup.py

示例10: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        ret = InstallCommandBase.finalize_options(self)
        return ret 
开发者ID:snuspl,项目名称:parallax,代码行数:5,代码来源:setup.py

示例11: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        install.finalize_options(self)
        if self.no_ml:
            dist = self.distribution
            dist.packages=find_packages(exclude=[
                'tests',
                'tests.*',
                'talon.signature',
                'talon.signature.*',
            ])
            for not_required in ['numpy', 'scipy', 'scikit-learn==0.16.1']:
                dist.install_requires.remove(not_required) 
开发者ID:mailgun,项目名称:talon,代码行数:14,代码来源:setup.py

示例12: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        _build_ext.finalize_options(self)
        # The argument parsing will result in self.define being a string, but
        # it has to be a list of 2-tuples.
        # Multiple symbols can be separated with semi-colons.
        self.define = _process_define(self)
        cmake_opts.extend(self.define)
        if self.symengine_dir:
            cmake_opts.extend([('SymEngine_DIR', self.symengine_dir)])

        if self.generator:
            cmake_generator[0] = self.generator

        cmake_build_type[0] = self.build_type 
开发者ID:symengine,项目名称:symengine.py,代码行数:16,代码来源:setup.py

示例13: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
            bdist_wheel.finalize_options(self)
            # Mark us as not a pure python package
            self.root_is_pure = False 
开发者ID:daanzu,项目名称:kaldi-active-grammar,代码行数:6,代码来源:setup.py

示例14: finalize_options

# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import finalize_options [as 别名]
def finalize_options(self):
        install.finalize_options(self)
        if not self.do_not_fail:
            raise RuntimeError('No one asked me not to fail, so I did') 
开发者ID:cloudify-cosmo,项目名称:cloudify-manager,代码行数:6,代码来源:setup.py


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