Setuptools 是一个 Python 库,它提供了一组命令行工具,用于构建、分发和安装 Python 包。下面列出了 Setuptools 中可用的命令:

  1. build - 构建 Python 包。
  2. sdist - 创建源分发包。
  3. bdist_wheel - 创建 Python wheel 分发包。
  4. develop - 安装包并将其链接到开发环境中。
  5. install - 安装包到 Python 环境中。
  6. easy_install - 安装包和其依赖项。
  7. egg_info - 构建 egg 信息文件。
  8. upload - 将包上传到 PyPI。
  9. register - 在 PyPI 上注册包。
  10. test - 运行包的测试套件。
  11. check - 检查包的正确性。
  12. clean - 清理构建和生成的文件。
  13. develop_easy_install - 将包安装到开发环境中。
  14. rotate - 将包版本从开发状态切换到发布状态。

以上是 Setuptools 中可用的一些命令,可以帮助您构建、分发和安装 Python 包。

Setuptools 命令大全:构建、分发和安装 Python 包

原文地址: https://www.cveoy.top/t/topic/lzbc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录