]> git.saurik.com Git - wxWidgets.git/commitdiff
Add cx_Freeze and Installer examples
authorRobin Dunn <robin@alldunn.com>
Fri, 28 May 2004 19:13:42 +0000 (19:13 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 28 May 2004 19:13:42 +0000 (19:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/distrib/make_installer.py
wxPython/samples/doodle/README.txt
wxPython/samples/doodle/cxfreeze.bat [new file with mode: 0755]
wxPython/samples/doodle/installer.bat [new file with mode: 0755]
wxPython/samples/doodle/setup.py

index 2623911e91bb0f274c4763f4bdb022024be6c85c..740c5632aea9165cebb14388e2194d9ca0a19efb 100644 (file)
@@ -196,10 +196,11 @@ Source: "scripts\pyshell";                  DestDir: "{code:GetPythonDir}\Script
 Source: "scripts\pycrust";                  DestDir: "{code:GetPythonDir}\Scripts"; Components: core
 Source: "scripts\pywrap";                   DestDir: "{code:GetPythonDir}\Scripts"; Components: core
 Source: "scripts\xrced";                    DestDir: "{code:GetPythonDir}\Scripts"; Components: core
-Source: "%(WXDIR)s\lib\vc_dll\wxrc.exe";           DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "%(WXDIR)s\lib\vc_dll\wxrc.exe";    DestDir: "{code:GetPythonDir}\Scripts"; Components: core
 
 Source: "samples\doodle\*.py";              DestDir: "{app}\wx\samples\doodle"; Components: samples
 Source: "samples\doodle\*.txt";             DestDir: "{app}\wx\samples\doodle"; Components: samples
+Source: "samples\doodle\*.bat";             DestDir: "{app}\wx\samples\doodle"; Components: samples
 Source: "samples\doodle\sample.ddl";        DestDir: "{app}\wx\samples\doodle"; Components: samples
 Source: "samples\doodle\superdoodle.iss";   DestDir: "{app}\wx\samples\doodle"; Components: samples
 
index f4c80c50e7e316dba3d1152ada4809d5afc45776..49f0ff6e7be37fe94c8e282423c89977bbcd62f9 100644 (file)
@@ -19,13 +19,21 @@ and much more.
                     this command to build the .exe and collect the
                     other needed files:
 
-                       python setup.py py2exe -w
+                       python setup.py py2exe
 
 
-    superdoodle.iss  An InnoSetup script to build a self-installer of
-                     the superdoodle standalone executable.  You can
-                     get InnoSetup from http://www.jrsoftware.org/.
-                     You may have to edit this file to make it work
-                     for your environment and python installation.
+    superdoodle.iss  NOTE: This .iss file needs updating!
+                    An InnoSetup script to build a self-installer of
+                     the superdoodle standalone executable created
+                     with py2exe.  You can get InnoSetup from
+                     http://www.jrsoftware.org/.  You may have to edit
+                     this file to make it work for your environment
+                     and python installation.               
+                    
 
+    cxfreeze.bat     An example of creating an executable with the
+                     cx_Freeze utility, downloadable from 
+                    http://starship.python.net/crew/atuining/cx_Freeze/
 
+    installer.bat    An example of creating an executable with Gordon
+                     McMillan's Installer utility.
diff --git a/wxPython/samples/doodle/cxfreeze.bat b/wxPython/samples/doodle/cxfreeze.bat
new file mode 100755 (executable)
index 0000000..13d59f6
--- /dev/null
@@ -0,0 +1,16 @@
+
+rem   This script is an example of how to use cx_Freeze on a wxPython 
+rem   app to produce an executable.
+
+setlocal
+set CXDIR=c:\tools\cx_Freeze-2.2
+rem set CXBASE=ConsoleBase.exe
+set CXBASE=Win32GUIBase.exe
+
+mkdir cxdist
+%CXDIR%\FreezePython.exe --base-binary %CXDIR%\%CXBASE% --install-dir cxdist superdoodle.py
+
+rem NOTE: Only the python DLL is copied to cxdist, you'll still need
+rem       to copy the wxWidgets DLLs and any others that are needed...
+
+endlocal
diff --git a/wxPython/samples/doodle/installer.bat b/wxPython/samples/doodle/installer.bat
new file mode 100755 (executable)
index 0000000..7e7adf8
--- /dev/null
@@ -0,0 +1,12 @@
+
+rem   This script is an example of how to use the McMillan Installer
+rem   on a wxPython app to produce an executable.
+
+setlocal
+
+set INSTDIR=c:\tools\Installer
+
+python %INSTDIR%\Makespec.py --onedir --noconsole  superdoodle.py
+python %INSTDIR%\Build.py  superdoodle.spec
+
+endlocal
index 2e72fd0dfd9b25f41af8591b1a52ed5144f669d1..020789a894f66c01009a7ec2af8db805624836bb 100644 (file)
@@ -11,7 +11,7 @@ from distutils.core import setup
 import py2exe
 
 setup( name = "superdoodle",
-       #console = ["superdoodle.py", "doodle.py"]
-       windows = ["superdoodle.py", "doodle.py"]
+       #console = ["superdoodle.py"]
+       windows = ["superdoodle.py"] #, "doodle.py"]
        )