Skip to content

sunbory/pybuild

 
 

Repository files navigation

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

About

some python build script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%