1
我會如何將捆綁成一個exe文件,以及使用py2exe的代碼打包成exe文件?第三方庫和Py2exe
現在我用我的setup.py的代碼是
from distutils.core import setup
import py2exe
# equivalent command line with options is:
# python setup.py py2exe --compressed --bundle-files=2 --dist-dir="my/dist/dir" --dll-excludes="w9xpopen.exe"
options = {'py2exe': {
'compressed':1,
'bundle_files': 1,
'dist_dir': "exe/dist/dir"
'dll_excludes' }}
setup(console=[''], options=options,zipfile = None)
謝謝你,這是我需要什麼。 – Max00355 2012-08-02 03:26:40