Python的MANIFEST.in文件中的嫁接命令是什么? [英] What is the graft command in Python's MANIFEST.in file?

查看:264
本文介绍了Python的MANIFEST.in文件中的嫁接命令是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一个带有MANIFEST.in文件的Python项目.我可以猜测其中的大部分含义,但是我不清楚这行的含义:

I found a Python project with a MANIFEST.in file. I can guess at the meaning of much of it, but I am unclear on the meaning of the line:

graft tools

推荐答案

您可以在 JoshData/pdfminer/MANIFEST.in .

这是一个使用 模板

可以在项目中添加MANIFEST.in文件,以定义要包含在sdist命令构建的发行版中的文件列表.

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.

运行sdist时,它将查找MANIFEST.in文件并对其进行解释,以生成MANIFEST文件,该文件包含将包含在软件包中的文件列表.

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命令中,您确实具有:

Among the MANIFEST commands, you do have:

graft dir   
  include all files under dir

请参见 Distutils教程

MANIFEST.in文件花了我一段时间才能理解.
这是distutils用来收集项目中所有文件的文件,这些文件将进入最终安装程序的tarball(已分发的文件).

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).

这篇关于Python的MANIFEST.in文件中的嫁接命令是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆