python - setup.py 中包含哪些包?

标签 python package distutils

我正在阅读this article ,它有这样的代码:

from distutils.core import setup

setup(name='Distutils',
      version='1.0',
      description='Python Distribution Utilities',
      author='Greg Ward',
      author_email='<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="95f2e2f4e7f1d5e5ece1fdfafbbbfbf0e1" rel="noreferrer noopener nofollow">[email protected]</a>',
      url='https://www.python.org/sigs/distutils-sig/',
      packages=['distutils', 'distutils.command'],
     )

我想知道是什么。它们是文件夹/目录吗?或者一种文件类型?或者它是 zip 或 py 文件?

任何帮助将不胜感激。

最佳答案

直接来自您自己的链接。

( Relevant section )

The packages option tells the Distutils to process (build, distribute, install, etc.) all pure Python modules found in each package mentioned in the packages list.

...

Thus, when you say packages = ['foo'] in your setup script, you are promising that the Distutils will find a file foo/__init__.py

关于python - setup.py 中包含哪些包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47320318/

相关文章:

ntp 更新时间时 Python Twisted 应用程序中断

python - 在 Blender 中无线读取数据时运行游戏引擎

Java包周期检测: how do I find the specific classes involved?

python - 如何使用 setup.py 安装先决条件

python - 将 Cython 标记为构建依赖项?

python - setup.py 没有安装 swig 扩展模块

python - Django 显示静态文件夹之外的图像/视频

python - 为什么我的 linux 上的 python 程序在终止程序后没有执行?

java - "Package has incorrect spelling" eclipse

java - java类的访问级别