-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (30 loc) · 1.03 KB
/
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
# An advanced setup script to create multiple executables and demonstrate a few
# of the features available to setup scripts
#
# hello.py is a very simple "Hello, world" type script which also displays the
# environment in which the script runs
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirectory in the build
# subdirectory that contains the files needed to run the script without Python
import sys
import pygame._view
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
executables = [
Executable("Game.py", base=base)
]
buildOptions = dict(
compressed = True,
includes = ["pygame", "shelve", "configparser", "sys", "ast", "math", "random"],
path = sys.path,
include_files=["resources"])
setup(
name = "OrangeLord",
version = "0.7",
description = "OrangeLord Dungeon",
options = dict(build_exe = buildOptions),
executables = executables)