From: Hans R. \(WXGlade\) <fil...@od...> - 2007-08-30 16:21:09
|
Hi there... I use py2exe since many years, as it does everything one needs. It even can package into "1 file" but this is sometimes not compatible and the multi file version is more transparent anyway imho. Try http://py2exe.org/index.cgi/Tutorial for a start and dig into the wiki. You may have good results with my "standard" setup which I more or lesse use for all wxPython based projects. - File: setup-my-app.py ---------------------------- from distutils.core import setup import py2exe #@UnusedImport class Target: def __init__(self, **kw): self.__dict__.update(kw) # for the versioninfo resources self.company_name = "mycompany Ltd." self.copyright = "2007 by mycompany Ltd." # The manifest will be inserted as resource into test_wx.exe. This # gives the controls the Windows XP appearance (if run on XP ;-) # # Another option would be to store if in a file named # test_wx.exe.manifest, and probably copy it with the data_files # option. # manifest_template = ''' <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="5.0.0.0" processorArchitecture="x86" name="%(prog)s" type="win32" /> <description>%(prog)s Program</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> </assembly> ''' RT_MANIFEST = 24 VER = "1.1.0" mytarget = Target( # used for the versioninfo resource version = VER, name = "MY-APP", description = "My Application Description", # what to build script = "my-app.py", other_resources = [(RT_MANIFEST, 1, manifest_template % dict(prog="my-app"))], icon_resources= [(1, 'my-app.ico')], dest_base = "my-app") setup( # console=[mytarget], windows=[mytarget], zipfile = None, data_files=[("",['msvcr71.dll'])], options = {"py2exe": { "packages": ["encodings"] }} ) - EOF: setup-my-app.py ----------------------------- In Addition I use a batch file looking like this: - FILE: make-my-app.bat ---------------------------- del /s /f /q dist del /s /f /q build python setup-my-app.py py2exe -c -b 1 - EOF: make-my-app.py ------------------------------ To make the installer I use Inno-Setup with another Simple Script. - Hans Raaf ________________________________ From: wxg...@li... [mailto:wxg...@li...] On Behalf Of Robert Dailey Sent: Thursday, August 30, 2007 6:02 PM To: wxg...@li... Subject: Re: [wxGlade] How did you convert .py to .exe? Hi, Thank you for your reply. However, what I meant was that I would like to know what 3rd party utilities you guys use to create the executables for wxGlade so that I may use those same tools on my other python applications to make them run as executables, much like wxGlade does. I'm not specifically interested in making wxGlade an executable. I apologize for not having been more detailed in my original inquiry. Thanks again. On 8/29/07, Alberto Griggio <alb...@gm...> wrote: Hello, > I was wondering what method you guys used to convert wxGlade into a windows > executable. [...] > Any help is greatly > appreciated. Thank you. Here's a Mercurial repo with the tools and scripts needed. http://wxglade.sourceforge.net/hg/wxglade-dist-scripts/ It includes a README with basic instructions... HTH, Alberto ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Wxglade-general mailing list Wxg...@li... <mailto:Wxg...@li...> https://lists.sourceforge.net/lists/listinfo/wxglade-general No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 29.08.2007 20:21 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 29.08.2007 20:21 |