Re: [PyOpenGL-Users] bug?

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel,gmane.comp.python.opengl.user
Message-ID <[email protected]>
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


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.