-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (29 loc) · 922 Bytes
/
setup.py
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
32
33
34
35
36
37
# This is an example setup.py file
# run it from the windows command line like so:
# > C:\Python2.4\python.exe setup.py py2exe
from distutils.core import setup
import py2exe, glob
opts = {
"py2exe": {
# if you import .py files from subfolders of your project, then those are
# submodules. You'll want to declare those in the "includes"
'includes':[
'actors',
'ui',
],
}
}
setup(
#this is the file that is run when you start the game from the command line.
console=['main.py'],
#options as defined above
options=opts,
#data files - these are the non-python files, like images and sounds
#the glob module comes in handy here.
data_files = [
("data", glob.glob("data\\*.png") + glob.glob("data\\*.wav")),
],
#this will pack up a zipfile instead of having a glut of files sitting
#in a folder.
zipfile="lib/shared.zip"
)