1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
"""
Usage:
python setup.py py2exe
"""
from distutils.core import setup
import py2exe, os
SOURCES = [os.path.join('src', p) for p in os.listdir('src') if os.path.splitext(p)[1] == '.py']
DATA_FILES = [('.', SOURCES)]
INCLUDES = ['dircache', 'sets', 'shutil', 'random', 'pygame']
OPTIONS = {
"py2exe": {
"includes": INCLUDES,
}
}
setup(
version = "02",
windows = [
{
"script": 'src/Main.py',
"icon_resources": [(1, "media/krank.ico")]
}
],
data_files = DATA_FILES,
options = OPTIONS,
)
|