Created
January 5, 2016 08:51
-
-
Save j-iNFINITE/10f740d571e91bea29f2 to your computer and use it in GitHub Desktop.
简单的py2exe打包setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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