[visionegg] Re: py2exe and VisionEgg

Hi Gabriel,

After dissuading you from using spy2exe, I've dusted off my Windows 2000 partition and gotten it working. (And failed with Installer, although not admittedly working very hard at it before trying py2exe.)

Anyhow, there wasn't anything particularly difficult, but I did find a few minor issues. First, my packages, which were downloaded tonight (the Windows step-by-step install page should be updated after I verify these packages seem to work):

Python version 2.3.4 (OK)
extra Python info: (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
Numeric version 23.6 (OK)
PyOpenGL (package "OpenGL") version 2.0.2.01 (OK)
pygame version 1.6 (OK)
Python Imaging Library (package "Image") version 1.1.4 (OK)

I had to make a small modification to C:\Python23\Lib\site-packages\OpenGL/__init__.py to eliminate a file opening to check its version and hard coded the value instead.

I had to de-install numarray 1.1.1 because it caused a Fatal Python Error because apparently a numarray C API call was made without first calling import_libnumarray().

I had to insert the lines "import OpenGL.GL.GL__init___; import OpenGL.GL.ARB.multitexture" to allow py2exe to find these modules. (I checked an equivalent change into CVS in src/GL.py .)

I debugged some of the above with: "import VisionEgg
VisionEgg.start_default_logging(); VisionEgg.watch_exceptions(); VisionEgg.logger.setLevel( VisionEgg.logging.DEBUG )"


Finally, here's my setup.py script:

from distutils.core import setup
import py2exe

setup(
   console = ["gabor.py"],
   )

Pretty simple, eh?  :)

I hope this works for you...

Cheers!
Andrew

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: