Re: [PyOpenGL-Users] bug?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2007-01-11 06:56:35
|
red puck wrote: > Hello, Everyone, > > I found a interesting question here. > > I use the first sample program from chapter 24 from > Python How to Program By Harvey M. Deitel, Paul J. > Deitel, Jonathan P. Liperi, BA Wiedermann; Prentice > Hall, 2002. > > This program can get correct figure. But I found a > interesting thing here. or maybe it is a bug? > > The run of the program like following > ... > The key problem is here. The source code works well, > but once I compiled it with Cx_freeze. The executable > doesn't work. > > Anybody can clear this for me? > I can clear up the "why", but don't yet have a solution. Basically, the various application-building systems, such as py2app, py2exe and cx_freeze don't yet support the setuptools/egg format properly. They neglect to properly register the bundled-up eggs, so the setuptools-based plugin code (which handles the array formats) never gets registered or invoked. At the moment I have no solution for this. I'm planning to sit down at some point and try to figure out a patch for the various tools, but my available time for OpenGL hacking is minimal these days and I'm still focused on the core functionality, more than the packaging issues. I *believe* with certain approaches with py2exe it should be possible to exclude the library entirely and then just drop the .egg into the application's distribution directory, but I haven't tried that and haven't confirmed that my understanding is correct. I'm guessing you would need to be sure that setuptools is included in the bundle as well, btw. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |