z3c和z3c有什么区别。配方.脚本以及配方鸡蛋?

2024-05-20 21:29:30 发布

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

两个z3c。配方.脚本以及配方鸡蛋似乎在积极发展。在

z3c。配方.脚本描述为:

The script recipe installs eggs into a buildout eggs directory, exactly like zc.recipe.egg, and then generates scripts in a buildout bin directory with egg paths baked into them.

在配方鸡蛋描述为:

The egg-installation recipe installs eggs into a buildout eggs directory. It also generates scripts in a buildout bin directory with egg paths baked into them.

有什么区别?我两个都需要吗?在


Tags: thez3cin脚本eggbuildoutscripts配方
2条回答

你不需要两者。显然,z3c.recipe.scriptszc.recipe.egg有一些改进:

  • The interpreter generated by the script supports all interpreter options, as opposed to the subset provided by zc.recipe.egg.
  • Both scripts and interpreters from this recipe can optionally choose to include site-packages, and even sitecustomize.

这些选项在^{} PyPI page上有更详细的描述。在

如果您不理解这些选项的含义,那么您可能根本不需要使用z3c.recipe.eggs;只需坚持使用zc.recipe.egg,它作为zc.buildout核心的一部分进行维护。在

配方鸡蛋

鸡蛋食谱安装一个或多个鸡蛋,以及它们的依赖关系。它安装它们的控制台脚本入口点,在它们的路径中包含所需的鸡蛋。它适合与“干净”Python一起使用:站点包中没有安装包。在

z3c。配方.脚本

像配方鸡蛋,此配方基于鸡蛋构建解释器脚本和入口点脚本。它可以与在站点包中安装了包的Python一起使用,比如系统Python。解释器还具有比配方鸡蛋. 在

http://pypi.python.org/pypi/zc.buildout/1.6.3#creating-new-buildouts-and-bootstrapping

相关问题 更多 >