[wxpython-users] Suggestion for the wiki
Raffaello Barella
barbarossa.platz at gmail.com
Thu Mar 27 00:44:57 PDT 2008
As an afterthought, I send you also one of my setup.py files as an example
(if you do not understand the notes in Italian, you can ignore them, they
are not so important):
#!/usr/bin/env python
"""
Agenda.setup
File di caricamento di Agenda.py
"""
from distutils.core import setup
import py2exe
path =3D 'E:\\Python25\\Lib\\site-packages\\rb\\bitmaps\\'
bitmap_resources =3D ['Exit.xpm', 'FillGrid.xpm', 'Flush.xpm', \
'First.xpm', 'Last.xpm', \
'panflute.xpm', 'New.xpm', 'Modify.xpm',\
'Break.xpm','Cancel.xpm', 'Save.xpm','AZ.xpm']
for j in range(len(bitmap_resources)):
bitmap_resources[j] =3D path + bitmap_resources[j]
setup(name=3D'Agenda',
version=3D'1.1',
description=3D'Agenda - applicazione per la gestione degli impegni',
author=3D 'Raffaello Barella',
author_email=3D'errebi1941 at gmail.com',
packages=3D ['E:\\Python25\\Lib\\site-packages\\rb'],
data_files=3D[('bitmaps', bitmap_resources),
('', ['Agenda.ico'])],
windows =3D [
{
"script": "Agenda.py",
"icon_resources": [(2,'Agenda.ico')]
}
]
)
Bye
2008/3/27, Raffaello Barella <barbarossa.platz at gmail.com>:
>
> Try with py2exe, that you'll find at www.*py2exe*.org/ , and with
> pyinstaller, at http://pyinstaller.python-hosting.com/.
>
> In any case the result is a file named setup.py that, started from the
> command line, will transform your .py into an .exe file.
>
> A very useful addition either to py2exe or pyinstaller is the following
> file, named Make_exe.bat, to be put into the same directory:
>
> rem *** Make_exe.bat***
>
>
> rem *** Used to create a Python exe
>
> rem ***** get rid of all the old files in the build folder
> rd /S /Q build
>
> rem ***** create the exe
> E:\Python25\python setup.py py2exe
>
> rem **** pause so we can see the exit codes
> pause "done...hit a key to exit"
>
> rem **** cancel the build directory
> rd /S /Q build
>
> Make_exe.bat has saved me a lot of work, because it allows to repeat the
> action of converting all the revisions of your .py with a simple click. I=
am
> only sorry that I have forgotten where I got it from, and so cannot thank
> the author.
>
>
>
> 2008/3/27, Tony Cappellini <cappy2112 at gmail.com>:
> >
> > If it hasn't already been done, a good addition to the wiki would be
> > an example of how to convert a demo app from the
> > wxDemos into a stand alone program.
> >
> > If it has already been added, would someone send me the link?
> > _______________________________________________
> > wxpython-users mailing list
> > wxpython-users at lists.wxwidgets.org
> > http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200803=
27/1ad559ad/attachment-0001.htm
More information about the wxpython-users
mailing list