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. In
order to do this, of course, there has
to be a correspondence between package
names and directories in the
filesystem.
不,如果您只需要整个包,那么指定它的名称(即
pckA
)就足够了,无需列出其中的所有模块。distutils
将递归地发现它们。在所以在你的情况下:
就这样。以下是the docs中的一句话:
如果您不想要整个包,而希望只包含特定的模块,请使用
py_modules
选项。在相关问题 更多 >
编程相关推荐