I do not have access to a windows machine right now, try this.

http://thadeusb.com/code/bubb_man_setup.txt

rename to .py

Also, change your run_game.py to this: py2exe automatically includes all needed modules for you, you do not have to include the 'lib' subdirectory, since that is going to be zipped up into the .exe

The only files you need to specify extra are, game data files (pictures, sound, etc) and any potentially missing dll's.

Run the bubb_man_setup.txt(.py) let me know how it runs, and if there are any errors please post.

#! /usr/bin/env python

import lib.main
main.run_game()

-Thadeus




On Fri, Oct 16, 2009 at 4:08 AM, Ian Mallett <geometrian@gmail.com> wrote:
On Tue, Oct 13, 2009 at 8:46 AM, Thadeus Burgess <thadeusb@thadeusb.com> wrote:
Ian, I use something similar for my setup.py for my pygames.

You can view it here: http://hg.thadeusb.com/public/.r/Games/MyRTS/file/4dfc6b0d398b/src/setup.py

And I explain it a bit in the comments on my blog post http://blog.thadeusb.com/2009/04/15/pygame-font-and-py2exe/

Basically, i use a * in the data_files list and then the code lines 105-121 take care of the recursive include.
I ran the setup.py, but it still crashes with the error that it can't find main.py, the first file in the subdirectory.
Hopefully that helps! If you feel like posting your whole project I might be able to help you more.
http://geometrian.com/BubbMan2-DX.zip
On Tue, Oct 13, 2009 at 8:51 AM, Werner F. Bruhin <werner.bruhin@free.fr> wrote:
Ian,

Ian Mallett wrote:
> Hello,
>
> I'm trying to compile something for a friend.  The architecture of the
> program is a .py file that uses .py files in three other directories
> (not packages, like in site-packages): "retrogamelib/", "lib/", and
> "data/".  I would like to see a fully recursive version of this, but for
> now, here's what I've got:
What is in the subdirs?  .py files or some other data files?
The program uses .py files and other data files.  
Ian

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users