Skip to content

Instantly share code, notes, and snippets.

@j-iNFINITE
Created January 5, 2016 08:51
Show Gist options
  • Save j-iNFINITE/10f740d571e91bea29f2 to your computer and use it in GitHub Desktop.
Save j-iNFINITE/10f740d571e91bea29f2 to your computer and use it in GitHub Desktop.
简单的py2exe打包setup
# -*- coding: cp936 -*-
from distutils.core import setup
import py2exe
options = {"py2exe":
{"compressed": 1, #压缩
"bundle_files": 1 #所有文件打包成一个exe文件
}}
setup(
options=options,
zipfile=None,
console=[{"script": "command.py", "icon_resources": [(1, "cool.ico")]}],
version = "1.0",
description = "",
name = "",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment