Python 如何将pyinstaller与zc.buildout一起使用?

Python 如何将pyinstaller与zc.buildout一起使用?,python,pyinstaller,buildout,Python,Pyinstaller,Buildout,我几乎让它工作了。My buildout.cfg: [buildout] parts = deps py develop = . lib/sdl-util/ lib/nark/ [deps] recipe = zc.recipe.egg:eggs eggs = nose pysdl2 pyinstaller [py] interpreter = py recipe = zc.recipe.egg:script eggs = zope.component tec

我几乎让它工作了。My buildout.cfg:

[buildout]
parts = deps py
develop =
  .
  lib/sdl-util/
  lib/nark/

[deps]
recipe = zc.recipe.egg:eggs
eggs =
  nose
  pysdl2
  pyinstaller

[py]
interpreter = py
recipe = zc.recipe.egg:script
eggs =
  zope.component
  tech
  nark
  sutils
  pysdl2
  pyinstaller
这将生成路径/bin/py,当我运行/bin/py app.py时,我的应用程序将运行。太好了

现在怎么办

如果全局安装pyinstaller并运行:

pyinstaller app.py
它生成dist/app,但运行它失败,因为在pyinstaller运行期间未找到我的构建中的开发鸡蛋

如果我在全局范围内安装所有的egg(包括开发的),并运行pyinstaller,那么生成的二进制代码就可以完美地工作。。。但构建的要点是,你不必这样做

基本上,如何将pyinstaller脚本的“buildout-aware”副本安装到我的bin文件夹中

我认为这与使用“recipe=zc.recipe.egg:scripts”有关,但是当您试图从包中获取脚本时,构建文档对其工作原理非常模糊

我确信我以前见过一个在bin文件夹中安装alembic和nosetests的构建,所以我确信这是可能的。。。不知怎的…

[py]
[py]  
recipe = zc.recipe.egg:script
eggs = ${buildout:eggs}
interpreter = py
dependent-scripts = true  <---- This.
recipe=zc.recipe.egg:脚本 鸡蛋=${buildout:eggs} 解释器=py 依赖脚本=true