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