Greg Ward, Anthony Baxter
另请参阅
最新的模块分发文档编制
注意
This document is being retained solely until the
setuptools
documentation at
https://setuptools.readthedocs.io/en/latest/setuptools.html
independently covers all of the relevant information currently included here.
注意
此指南仅涵盖作为此 Python 版本一部分提供的,用于构建和分发扩展的基本工具。第 3 方工具提供更易于使用和更安全的替代。参考 快速推荐章节 在 Python Packaging User Guide (Python 打包用户指南) 了解更多信息。
This document describes the Python Distribution Utilities (“Distutils”) from the module developer’s point of view, describing the underlying capabilities that
setuptools
builds on to allow Python developers to make Python modules and extensions readily available to a wider audience.
distutils.core
— 核心 distutils 功能
distutils.ccompiler
— CCompiler 基类
distutils.unixccompiler
— Unix C 编译器
distutils.msvccompiler
— Microsoft 编译器
distutils.bcppcompiler
— Borland 编译器
distutils.cygwincompiler
— Cygwin 编译器
distutils.archive_util
— 存档实用程序
distutils.dep_util
— 依赖校验
distutils.dir_util
— 目录树操作
distutils.file_util
— 单文件操作
distutils.util
— 其它杂项实用函数
distutils.dist
— 分发类
distutils.extension
— 扩展类
distutils.debug
— distutils 调试模式
distutils.errors
— distutils 异常
distutils.fancy_getopt
— 围绕标准 getopt 模块的包裹器
distutils.filelist
— FileList 类
distutils.log
— Simple
PEP 282
-style logging
distutils.spawn
— 卵生子进程
distutils.sysconfig
— 系统配置信息
distutils.text_file
— TextFile 类
distutils.version
— 版本号类
distutils.cmd
— 用于 distutils 命令的 ABC (抽象基类)
distutils.command
— 个别 distutils 命令
distutils.command.bdist
— 构建二进制安装程序
distutils.command.bdist_packager
— 用于包的 ABC (抽象基类)
distutils.command.bdist_dumb
— 构建 dumb 安装程序
distutils.command.bdist_msi
— 构建 Microsoft 安装程序二进制包
distutils.command.bdist_rpm
— 将二进制分发构建成 Redhat RPM 和 SRPM
distutils.command.bdist_wininst
— 构建 Windows 安装程序
distutils.command.sdist
— 构建源分发
distutils.command.build
— 构建包的所有文件
distutils.command.build_clib
— 在包中构建任何 C 库
distutils.command.build_ext
— 在包中构建任何扩展
distutils.command.build_py
— 构建包的 .py/.pyc 文件
distutils.command.build_scripts
— 构建包的脚本
distutils.command.clean
— 清理包构建区域
distutils.command.config
— 履行包配置
distutils.command.install
— 安装包
distutils.command.install_data
— 从包安装数据文件
distutils.command.install_headers
— 从包安装 C/C++ 头文件
distutils.command.install_lib
— 从包安装库文件
distutils.command.install_scripts
— 从包安装脚本文件
distutils.command.register
— 采用 PyPI (Python 包索引) 注册模块
distutils.command.check
— 检查包的元数据