9. Command Reference - Python 3.6.15 documentation 编辑

9.1. Installing modules: the install command family

The install command ensures that the build commands have been run and then runs the subcommands install_lib, install_data and install_scripts.

9.1.1. install_data

This command installs all data files provided with the distribution.

9.1.2. install_scripts

This command installs all (Python) scripts in the distribution.

9.2. Creating a source distribution: the sdist command

The manifest template commands are:

Command

Description

include pat1 pat2 ...

include all files matching any of the listed patterns

exclude pat1 pat2 ...

exclude all files matching any of the listed patterns

recursive-include dir pat1 pat2 ...

include all files under dir matching any of the listed patterns

recursive-exclude dir pat1 pat2 ...

exclude all files under dir matching any of the listed patterns

global-include pat1 pat2 ...

include all files anywhere in the source tree matching — & any of the listed patterns

global-exclude pat1 pat2 ...

exclude all files anywhere in the source tree matching — & any of the listed patterns

prune dir

exclude all files under dir

graft dir

include all files under dir

The patterns here are Unix-style “glob” patterns: * matches any sequence of regular filename characters, ? matches any single regular filename character, and [range] matches any of the characters in range (e.g., a-z, a-zA-Z, a-f0-9_.). The definition of “regular filename character” is platform-specific: on Unix it is anything except slash; on Windows anything except backslash or colon.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:63 次

字数:2465

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文