Setuptools 命令大全:构建、分发和安装 Python 包
Setuptools 是一个 Python 库,它提供了一组命令行工具,用于构建、分发和安装 Python 包。下面列出了 Setuptools 中可用的命令:
- build - 构建 Python 包。
- sdist - 创建源分发包。
- bdist_wheel - 创建 Python wheel 分发包。
- develop - 安装包并将其链接到开发环境中。
- install - 安装包到 Python 环境中。
- easy_install - 安装包和其依赖项。
- egg_info - 构建 egg 信息文件。
- upload - 将包上传到 PyPI。
- register - 在 PyPI 上注册包。
- test - 运行包的测试套件。
- check - 检查包的正确性。
- clean - 清理构建和生成的文件。
- develop_easy_install - 将包安装到开发环境中。
- rotate - 将包版本从开发状态切换到发布状态。
以上是 Setuptools 中可用的一些命令,可以帮助您构建、分发和安装 Python 包。
原文地址: https://www.cveoy.top/t/topic/lzbc 著作权归作者所有。请勿转载和采集!