如何进行Python版本控制?如果我使用git,是否需要安装setuptools?

2024-06-16 11:26:46 发布

您现在位置:Python中文网/ 问答频道 /正文

Python有它自己的distutils,我对它的了解有限。我知道的是:

  • 它使用清单.in忽略/包含文件。在
  • 它正在这样做python setup.py sdist 那我就要一个gzipped dist

我发现有一个https://pypi.python.org/pypi/setuptools-git使用git,但我看不出它与git有什么关系,它甚至没有在doc中显示任何git命令。在

我的问题是,我是否只删除清单.in如果我使用git? 或者应该有一种优雅的python方式来使用setuptools git

谢谢。在


Tags: 文件inpyhttpsorggitpypidoc
1条回答
网友
1楼 · 发布于 2024-06-16 11:26:46

setuptools-git is a plugin for setuptools that enables git integration. Once installed, Setuptools can be told to include in a package distribution all the files tracked by git. This is an alternative to explicit inclusion specifications with MANIFEST.in.

其目的是替换清单.in在.gitignore中忽略的文件 你不必使用这个插件,除非你想用.gitignore代替你的插件清单.in在

相关问题 更多 >