• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python setupbase.find_entry_points函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: set

    install_requires.append('pexpect')

everything = set()
for deps in extras_require.values():
    everything.update(deps)
extras_require['all'] = everything

if 'setuptools' in sys.modules:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop
    setup_args['cmdclass']['develop'] = require_submodules(develop)
    setup_args['cmdclass']['bdist_wheel'] = css_js_prerelease(get_bdist_wheel())
    
    setuptools_extra_args['zip_safe'] = False
    setuptools_extra_args['entry_points'] = {
        'console_scripts': find_entry_points(),
        'pygments.lexers': [
            'ipythonconsole = IPython.lib.lexers:IPythonConsoleLexer',
            'ipython = IPython.lib.lexers:IPythonLexer',
            'ipython3 = IPython.lib.lexers:IPython3Lexer',
        ],
    }
    setup_args['extras_require'] = extras_require
    requires = setup_args['install_requires'] = install_requires

    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows
    # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
    # doesn't find them.
    if 'bdist_wininst' in sys.argv:
        if len(sys.argv) > 2 and \
开发者ID:Temporare,项目名称:ipython,代码行数:31,代码来源:setup.py


示例2: len

    needs_setuptools.add('install')

if len(needs_setuptools.intersection(sys.argv)) > 0:
    import setuptools

# This dict is used for passing extra arguments that are setuptools
# specific to setup
setuptools_extra_args = {}

if 'setuptools' in sys.modules:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop
    setup_args['cmdclass']['develop'] = require_submodules(develop)
    
    setuptools_extra_args['zip_safe'] = False
    setuptools_extra_args['entry_points'] = {'console_scripts':find_entry_points()}
    setup_args['extras_require'] = dict(
        parallel = 'pyzmq>=2.1.11',
        qtconsole = ['pyzmq>=2.1.11', 'pygments'],
        zmq = 'pyzmq>=2.1.11',
        doc = 'Sphinx>=0.3',
        test = 'nose>=0.10.1',
        notebook = ['tornado>=3.1', 'pyzmq>=2.1.11', 'jinja2'],
        nbconvert = ['pygments', 'jinja2', 'Sphinx>=0.3']
    )
    everything = set()
    for deps in setup_args['extras_require'].values():
        if not isinstance(deps, list):
            deps = [deps]
        for dep in deps:
            everything.add(dep)
开发者ID:ANB2,项目名称:ipython,代码行数:31,代码来源:setup.py


示例3: list

    if "setuptools" in sys.modules:
        for key in list(extras_require):
            if "platform_python_implementation" in key:
                new_key = key.replace("platform_python_implementation", "python_implementation")
                extras_require[new_key] = extras_require.pop(key)

everything = set()
for key, deps in extras_require.items():
    if ":" not in key:
        everything.update(deps)
extras_require["all"] = everything

if "setuptools" in sys.modules:
    setuptools_extra_args["zip_safe"] = False
    setuptools_extra_args["entry_points"] = {
        "console_scripts": find_entry_points(),
        "pygments.lexers": [
            "ipythonconsole = IPython.lib.lexers:IPythonConsoleLexer",
            "ipython = IPython.lib.lexers:IPythonLexer",
            "ipython3 = IPython.lib.lexers:IPython3Lexer",
        ],
    }
    setup_args["extras_require"] = extras_require
    requires = setup_args["install_requires"] = install_requires

    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows
    # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
    # doesn't find them.
    if "bdist_wininst" in sys.argv:
        if len(sys.argv) > 2 and ("sdist" in sys.argv or "bdist_rpm" in sys.argv):
开发者ID:Gordonguan,项目名称:ipython,代码行数:31,代码来源:setup.py


示例4: any

if sys.platform == 'darwin':
    if any(arg.startswith('bdist') for arg in sys.argv) or not setupext.check_for_readline():
        install_requires.append('gnureadline')
elif sys.platform.startswith('win'):
    # Pyreadline has unicode and Python 3 fixes in 2.0
    install_requires.append('pyreadline>=2.0')

if 'setuptools' in sys.modules:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop
    setup_args['cmdclass']['develop'] = require_submodules(develop)
    setup_args['cmdclass']['bdist_wheel'] = get_bdist_wheel()

    setuptools_extra_args['zip_safe'] = False
    setuptools_extra_args['entry_points'] = {
        'console_scripts': find_entry_points()}
    setup_args['extras_require'] = extras_require
    requires = setup_args['install_requires'] = install_requires

    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows
    # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
    # doesn't find them.
    if 'bdist_wininst' in sys.argv:
        if len(sys.argv) > 2 and \
                ('sdist' in sys.argv or 'bdist_rpm' in sys.argv):
            print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting."
            sys.exit(1)
        setup_args['data_files'].append(
            ['Scripts', ('scripts/ipython.ico', 'scripts/ipython_nb.ico')])
        setup_args['scripts'] = [
开发者ID:pyarnold,项目名称:ipython,代码行数:31,代码来源:setup.py


示例5: any

if sys.platform == "darwin":
    if any(arg.startswith("bdist") for arg in sys.argv) or not setupext.check_for_readline():
        install_requires.append("gnureadline")
elif sys.platform.startswith("win"):
    extras_require["terminal"].append("pyreadline>=2.0")


if "setuptools" in sys.modules:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop

    setup_args["cmdclass"]["develop"] = require_submodules(develop)
    setup_args["cmdclass"]["bdist_wheel"] = css_js_prerelease(get_bdist_wheel())

    setuptools_extra_args["zip_safe"] = False
    setuptools_extra_args["entry_points"] = {"console_scripts": find_entry_points()}
    setup_args["extras_require"] = extras_require
    requires = setup_args["install_requires"] = install_requires

    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows
    # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
    # doesn't find them.
    if "bdist_wininst" in sys.argv:
        if len(sys.argv) > 2 and ("sdist" in sys.argv or "bdist_rpm" in sys.argv):
            print >>sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting."
            sys.exit(1)
        setup_args["data_files"].append(["Scripts", ("scripts/ipython.ico", "scripts/ipython_nb.ico")])
        setup_args["scripts"] = [pjoin("scripts", "ipython_win_post_install.py")]
        setup_args["options"] = {"bdist_wininst": {"install_script": "ipython_win_post_install.py"}}
开发者ID:robertotang,项目名称:ipython,代码行数:30,代码来源:setup.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python setupbase.find_package_data函数代码示例发布时间:2022-05-27
下一篇:
Python setupbase.check_package_data_first函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap