Python的MANIFEST.in文件中的graft命令是什么?

What is the graft command in Python's MANIFEST.in file?

我找到了一个带有 MANIFEST.in 文件的 Python 项目。我能猜到大部分的意思,但我不清楚这行的意思:

graft tools

你可以在JoshData/pdfminer/MANIFEST.in or openstack/deb-python-falcon/MANIFEST.in中看到这样的文件。

这是一个使用 MANIFEST.in template

的 python 项目

A MANIFEST.in file can be added in a project to define the list of files to include in the distribution built by the sdist command.

When sdist is run, it will look for the MANIFEST.in file and interpret it to generate the MANIFEST file that contains the list of files that will be included in the package.

The manifest template has one command per line, where each command specifies a set of files to include or exclude from the source distribution.

MANIFEST commands 中,您有:

graft dir

include all files under dir

Distutils tutorial

The MANIFEST.in file took me a while to understand.
It's the file that distutils uses to collect all the files in your project that will go into the final installer tarball (the file that gets distributed).