[PyOpenGL-Devel] PyOpenGL and py2exe
Brought to you by:
mcfletch
From: Carlos D. R. V. <cls...@eg...> - 2006-04-19 06:10:19
|
Hello, I'm doing some wxPython + PyOpenGL work and wanted to use py2exe to destribute the binaries to my users, however I noted that PyOpenGL dosen't play nice ;) The problem is very simple actually, the file OpenGL/__init__.py reads the file OpenGL/version, the problem with py2exe is that this file isn't recognized as part of the module and isn't included, but what is worst, PyOpenGL tries to load it by using open, when this file is likely to be inside a zip file (along with other modules), and will fail. One posible way to solve this is to convert the version file to a python file (version.py) and import it from __init__.py, version.py should have the version number in __version__, this way py2exe can recognize it and include it, and PyOpenGL will be able to load it without problems. If there is a need for a patch or something I can provide it. ---------------------------------------------------------- Carlos Daniel Ruvalcaba Valenzuela |