我差点就能搞定了。我的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运行过程中没有找到我构建的开发蛋。
如果我在全球范围内安装所有的鸡蛋(包括开发的),并运行pyinstaller,那么生成的二进制程序就能很好地工作.但是构建的重点是你不需要这样做。
基本上,如何将pyinstaller脚本的“buildout感知”副本安装到bin文件夹中?
我猜想这可能与使用‘食谱=zc.replpe.ger: script’有关,但是当您试图从包中获取脚本时,构建文档对于它是如何工作的非常模糊。
我肯定我以前见过在bin文件夹中安装alembic和nosetest的内置程序,所以我确信这是可能的.不知怎么..。
发布于 2013-12-15 01:41:43
[py]
recipe = zc.recipe.egg:script
eggs = ${buildout:eggs}
interpreter = py
dependent-scripts = true <---- This.然后,您可以简单地运行./bin/pyinstaller main.py。
https://stackoverflow.com/questions/18981508
复制相似问题