ladder1984 / pybuild

some python build script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FAQ:

Q: How to build python27.exe and python27.zip ?
A: python pybuild.py -z python27.zip -i python27.ico python27.py

Q: How to build out a standalone python application ?
A: python pybuild.py python27.py

Q: How to reduce python27.zip size ?
A: extract python27.zip, delete some unused packages(email/unitest/unicodedata), then compress it with 7-Zip

Q: How to disassemble python27.exe bytecode ?
A: python -c "import sys,marshal,dis,py2exe.py2exe_util;dis.disassemble(marshal.loads(py2exe.py2exe_util.load_resource(sys.argv[1].decode(sys.getfilesystemencoding()), u'PYTHONSCRIPT', 1)[16:].partition('\x00')[2])[-1])" python27.exe

Q: What's more?
A: please mailto goagent-dev@googlegroups.com

About

some python build script