Skip to content

Commit 58d0f17

Browse files
author
Adam McNicol
committed
added setup file for cx_freeze
Signed-off-by: Adam McNicol <[email protected]>
1 parent 0935936 commit 58d0f17

7 files changed

+31
-0
lines changed
-5.55 KB
Binary file not shown.

__pycache__/cow_class.cpython-33.pyc

-1.61 KB
Binary file not shown.

__pycache__/crop_class.cpython-33.pyc

-5.49 KB
Binary file not shown.
-1.84 KB
Binary file not shown.
-1.63 KB
Binary file not shown.
-1.85 KB
Binary file not shown.

setup.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# A simple setup script to create an executable using PyQt4. This also
2+
# demonstrates the method for creating a Windows executable that does not have
3+
# an associated console.
4+
#
5+
# PyQt4app.py is a very simple type of PyQt4 application
6+
#
7+
# Run the build process by running the command 'python setup.py build'
8+
#
9+
# If everything works well you should find a subdirectory in the build
10+
# subdirectory that contains the files needed to run the application
11+
12+
application_title = "Field Simulation" #what you want to application to be called
13+
main_python_file = "field_simulation.py" #the name of the python file you use to run the program
14+
15+
import sys
16+
17+
from cx_Freeze import setup, Executable
18+
19+
base = None
20+
if sys.platform == "win32":
21+
base = "Win32GUI"
22+
23+
includes = ["atexit","re"]
24+
25+
setup(
26+
name = application_title,
27+
version = "0.1",
28+
description = "Sample cx_Freeze PyQt4 script",
29+
options = {"build_exe" : {"includes" : includes }},
30+
executables = [Executable(main_python_file, base = base)])
31+

0 commit comments

Comments
 (0)