2013-09-24 2 views
0

I 거의이 작동합니다. 내 buildout.cfg :pyinstaller를 zc.buildout과 함께 어떻게 사용합니까?

[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 app.py를 실행, 내 응용 프로그램 실행을 생성합니다. 큰.

이제 어떻게 되나요?

전 세계적으로 pyInstaller 중에 설치하고 실행하면 : 그것은 DIST/응용 프로그램을 생성

pyinstaller app.py 

,하지만 내 buildout에서 개발 계란이 pyInstaller 중에 실행하는 동안 발견되지 않았기 때문에 그것을 실행하면 실패합니다.

전 세계적으로 (달걀을 포함하여) 모든 달걀을 설치하고 pyinstaller를 실행하면 생성 된 바이너리가 완벽하게 작동하지만 빌드 아웃의 핵심은이 작업을 수행 할 필요가 없다는 것입니다.

기본적으로 pyinstaller 스크립트의 'buildout aware'복사본을 bin 폴더에 어떻게 설치합니까?

'recipe = zc.recipe.egg : scripts'를 사용하는 것과 관련이 있다고 생각합니다.하지만 빌드 아웃 문서는 패키지에서 스크립트를 가져올 때 어떻게 작동하는지 매우 모호합니다.

나는 그 bin 폴더에있는 증류기 및 nosetests를 설치하기 전에 나는 buildout을 본 적이 있는지, 그래서 나는이 어떻게 든 ... 수 있습니다 확신 ...

답변

0
[py] 
recipe = zc.recipe.egg:script 
eggs = ${buildout:eggs} 
interpreter = py 
dependent-scripts = true <---- This. 

그런 다음 수 ./bin/pyinstaller main.py를 실행하면됩니다.

관련 문제