Tutorial: Packaging a wxPython App

Hi,

I just thought I'd let the group know that I've posted a tutorial on packaging a wxPython application on Windows for Windows users using Andrea Gavana's GUI2Exe and Inno Setup. Questions, comments and suggestions are (as always) welcome. My next "big" tutorial will be on converting my code so it will run on Linux. Hopefully I won't have to drop any features...

You can find the packaging tutorial here: http://www.blog.pythonlibrary.org/?p=68

Finally, I am starting an Iowan Python User's Group, so if anyone here is actually in Iowa and would like to hook up from time to time, drop me a line. Thanks!

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

Hi Mike,

I just thought I'd let the group know that I've posted a tutorial on
packaging a wxPython application on Windows for Windows users using Andrea
Gavana's GUI2Exe and Inno Setup. Questions, comments and suggestions are (as
always) welcome. My next "big" tutorial will be on converting my code so it
will run on Linux. Hopefully I won't have to drop any features...

You can find the packaging tutorial here:
Packaging wxPyMail for Distribution - Mouse Vs Python

Very nice tutorial indeed, it looks like you're more familiar than me
with GUI2Exe :-D. I don't think you will need to rewrite your article
once the new GUI2Exe comes out, as the py2exe part is more or less
unchanged... but maybe adding the compilation steps for cx_Freeze,
PyInstaller, bbFreeze and (maybe) py2app would be nice.
GUI2exe is now almost ready except for the py2app part, which I am
still coding and which will require some help by Mac users (and it
looks like Christopher Barker has kindly offered to test my code on
his Mac). I hoped to finish it before my wedding but I don't think I
will be able to do it.
In any case, I really like the style of your tutorials, I believe they
are a very useful resource for newbies and also for more experienced
users... keep them coming!

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 8/28/08, Mike Driscoll wrote:

Hey Andrea,

[…]

GUI2exe is now almost ready […]

In a previous mail about GUI2exe I offered you to add the function I wrote for dynamically adding complete directories with subdirectories as part of the setup.py that GUI2exe generates. (The advantage being that you can add files to those directories without having to regenerate your setup.py).

I’m curious: did you add that, or not? Or are you still considering that for a next version?

(It’s just out of curiosity that I’m asking)

Andrea.

Regards,

–Tim

···

On Thu, Aug 28, 2008 at 10:05 AM, Andrea Gavana andrea.gavana@gmail.com wrote:

Hi Tim,

Hey Andrea,

[...]
> GUI2exe is now almost ready [...]

In a previous mail about GUI2exe I offered you to add the function I wrote
for dynamically adding complete directories with subdirectories as part of
the setup.py that GUI2exe generates. (The advantage being that you can add
files to those directories without having to regenerate your setup.py).
I'm curious: did you add that, or not? Or are you still considering that for
a next version?

Yes, I am considering it but I have still not added it to GUI2Exe. The
problem with all the exe-builders out there is that they have
different ways of expressing the "data_files" options, namely:

- py2exe: data_files should contain a sequence of (target-dir, files)
tuples, where files is a sequence of files to be copied;
- cx_Freeze: no such option for "data_files";
- PyInstaller: data_files should contain a sequence of (file name,
file path, 'DATA') tuples;
- bbFreeze: in some obscure way you can use setuptools and
pkg_resources to add data files, but I didn't find any resource on the
web on how to do that;
- py2app: comma-separated list of additional data files and folders to include.

So, it looks like a mess with all these different options. At the
moment I still prefer to build the full list of files in the setup
script, giving the user the option of choosing all the files himself
or to recurse one or more directory with all its subdirectories.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 8/28/08, Tim van der Leeuw wrote:

On Thu, Aug 28, 2008 at 10:05 AM, Andrea Gavana <andrea.gavana@gmail.com> > wrote:

Mike Driscoll wrote:

Hi,

I just thought I'd let the group know that I've posted a tutorial on
packaging a wxPython application on Windows for Windows users using
Andrea Gavana's GUI2Exe and Inno Setup. Questions, comments and
suggestions are (as always) welcome. My next "big" tutorial will be on
converting my code so it will run on Linux. Hopefully I won't have to
drop any features...

You can find the packaging tutorial here:
Packaging wxPyMail for Distribution - Mouse Vs Python

Finally, I am starting an Iowan Python User's Group, so if anyone here
is actually in Iowa and would like to hook up from time to time, drop me
a line. Thanks!

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

thanks for the fine tut Mike. I'm enjoying all of them that you are
putting up.
Keith

Andrea Gavana wrote:

Hi Mike,

I just thought I'd let the group know that I've posted a tutorial on
packaging a wxPython application on Windows for Windows users using Andrea
Gavana's GUI2Exe and Inno Setup. Questions, comments and suggestions are (as
always) welcome. My next "big" tutorial will be on converting my code so it
will run on Linux. Hopefully I won't have to drop any features...

You can find the packaging tutorial here:
Packaging wxPyMail for Distribution - Mouse Vs Python
    
Very nice tutorial indeed, it looks like you're more familiar than me
with GUI2Exe :-D.

I doubt that...but thanks for the praise.

I don't think you will need to rewrite your article
once the new GUI2Exe comes out, as the py2exe part is more or less
unchanged... but maybe adding the compilation steps for cx_Freeze,
PyInstaller, bbFreeze and (maybe) py2app would be nice.
GUI2exe is now almost ready except for the py2app part, which I am
still coding and which will require some help by Mac users (and it
looks like Christopher Barker has kindly offered to test my code on
his Mac). I hoped to finish it before my wedding but I don't think I
will be able to do it.
In any case, I really like the style of your tutorials, I believe they
are a very useful resource for newbies and also for more experienced
users... keep them coming!

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

I'm glad you like the style. I try to be newb friendly without talking down because in truth, we're all a newb at something.

I need to get a Mac for testing and just to see why everyone thinks they're so cool, but that probably won't happen for a few more months. When you're done with the new version of GUI2Exe, let me know and I'll try out the new features.

Thanks again,

Mike

···

On 8/28/08, Mike Driscoll wrote:

keith wrote:

Mike Driscoll wrote:
  

Hi,

I just thought I'd let the group know that I've posted a tutorial on
packaging a wxPython application on Windows for Windows users using
Andrea Gavana's GUI2Exe and Inno Setup. Questions, comments and
suggestions are (as always) welcome. My next "big" tutorial will be on
converting my code so it will run on Linux. Hopefully I won't have to
drop any features...

You can find the packaging tutorial here:
Packaging wxPyMail for Distribution - Mouse Vs Python

Finally, I am starting an Iowan Python User's Group, so if anyone here
is actually in Iowa and would like to hook up from time to time, drop me
a line. Thanks!

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

thanks for the fine tut Mike. I'm enjoying all of them that you are
putting up.
Keith

I'm glad you liked it. Let me know if you have any questions or suggestions for future tutorials.

Mike

Mike Driscoll wrote:

I need to get a Mac for testing and just to see why everyone thinks they're so cool, but that probably won't happen for a few more months. When you're done with the new version of GUI2Exe, let me know and I'll try out the new features.

A bit OT, but I just thought I'd mention that the Mac Mini's are fairly inexpensive and are very capable machines with plenty of power for software development tasks. Just be sure to get the 2nd GB of RAM as it will really help performance. So if you're looking to get a first taste of Mac and OS X without breaking the bank account then getting a Mini is a good way to go.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

<div class="moz-text-flowed" style="font-family: -moz-fixed">Mike Driscoll wrote:

I need to get a Mac for testing and just to see why everyone thinks they're so cool, but that probably won't happen for a few more months. When you're done with the new version of GUI2Exe, let me know and I'll try out the new features.

A bit OT, but I just thought I'd mention that the Mac Mini's are fairly inexpensive and are very capable machines with plenty of power for software development tasks. Just be sure to get the 2nd GB of RAM as it will really help performance. So if you're looking to get a first taste of Mac and OS X without breaking the bank account then getting a Mini is a good way to go.

Yeah...if I bought a Mac, that would be at the top of my list. I remember them at college and they were usually flakier than anything else in the lab. Not sure why, but that kind of sucked. We have a couple here at work and they seem better, although the Macbook Pro seemed to have something break every couple of months.

Mike