本文整理汇总了Python中setupbase.find_packages函数的典型用法代码示例。如果您正苦于以下问题:Python find_packages函数的具体用法?Python find_packages怎么用?Python find_packages使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了find_packages函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: find_packages
# custom distutils commands
#---------------------------------------------------------------------------
# imports here, so they are after setuptools import if there was one
from distutils.command.build_py import build_py
from distutils.command.sdist import sdist
setup_args = {
'name': 'jupyterlab',
'version': packagejson['version'],
'description': DESCRIPTION,
'long_description': LONG_DESCRIPTION,
'License': 'BSD',
'include_package_data': True,
'install_requires': ['notebook>=4.2.0'],
'packages': find_packages(),
'pack'
'zip_safe': False,
'package_data': {'jupyterlab': [
'build/*',
'lab.html'
]},
'cmdclass': {
'build_py': js_prerelease(build_py),
'sdist': js_prerelease(sdist, strict=True),
'jsdeps': NPM,
},
'entry_points': {
'console_scripts': [
'jupyter-lab = jupyterlab.labapp:main',
'jupyter-labextension = jupyterlab.labextensions:main',
开发者ID:roshancvp,项目名称:jupyterlab,代码行数:31,代码来源:setup.py
示例2: PDF
if not f.endswith('~') ]
# then, make them all dependencies for the main PDF (the html will get
# auto-generated as well).
to_update.append(
('docs/dist/ipython.pdf',
docdeps,
"cd docs && make dist")
)
[ target_update(*t) for t in to_update ]
#---------------------------------------------------------------------------
# Find all the packages, package data, and data_files
#---------------------------------------------------------------------------
packages = find_packages()
package_data = find_package_data()
data_files = find_data_files()
#---------------------------------------------------------------------------
# Handle scripts, dependencies, and setuptools specific things
#---------------------------------------------------------------------------
# For some commands, use setuptools. Note that we do NOT list install here!
# If you want a setuptools-enhanced install, just run 'setupegg.py install'
if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
'build_sphinx', 'egg_info', 'easy_install', 'upload',
)).intersection(sys.argv)) > 0:
import setuptools
开发者ID:pombredanne,项目名称:ipython,代码行数:30,代码来源:setup.py
示例3: import
import os.path
from setuptools import setup
from setuptools.command.build_py import build_py
from setupbase import (setup_args,
find_scripts,
find_packages,
find_package_data,
record_commit_info,
)
setup_args['entry_points'] = find_scripts(True, suffix='3')
setup_args['packages'] = find_packages()
setup_args['package_data'] = find_package_data()
setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
def main():
setup(use_2to3 = True, **setup_args)
if __name__ == "__main__":
main()
开发者ID:adgaudio,项目名称:ipython,代码行数:21,代码来源:setup3.py
注:本文中的setupbase.find_packages函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论