티스토리 뷰

파이썬

cx_Freeze package 나 module 추가 법

헬로르르 2018. 5. 22. 18:04

cf_Freeze 를 사용할 때, 개인적으로 만든 패키지가 추가가 안되서 실행이 보통 안될겁니다.
아래 처럼
includes = [...] 에다가 개발자 분이 추가한 pacakge 명을 넣어주시면 됩니다.

from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = ["sys","os"], excludes = [], includes = ["gui.consolewindows", "gui.controlwindows", "gui.imageview", "gui.testview", "multiprocessing.pool", ]) import sys base = None if sys.platform=='win32' else None executables = [ Executable('run.py', base=base) ] setup( name='pytool', version = '0.1', description = 'pytool @seonghun.chung', options = dict(build_exe = buildOptions), executables = executables )


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함