I've never used py2exe, but I'll note that you have "from numpy import
*" in your program, and you specify "numarray" as a needed package,
whereas the production version of VPython depends on Numeric, not numpy
nor numarray (it's supposed to work with either Numeric or numarray, but
I think it doesn't actually work with numarray).
Bruce Sherwood
andres felipe sierra echeverry wrote:
>
>
> ------------------------------------------------------------------------
> Does anyone could help me generate an executable program that
> functions for the bounce.py with py2exe?
>
> Thank you
>
> bounce.py:
>
> from visual import *
>
> from numpy import *
>
>
> ball = sphere(pos=(0,4,0), color=color.red)
>
> example = zeros((10,10),dtype=float)
>
> print (example)
>
>
>
> setup.py:
>
> from distutils.core import setup
> import py2exe
>
>
>
> opts = {
> 'py2exe': {'packages':['numarray']
>
> }
> }
>
>
> setup(windows=[{"script" : "bounce.py"}], options=opts)
>
>
> ------------------------------------------------------------------------
> Invite your mail contacts to join your friends list with Windows
> Live Spaces. It's easy! Try it!
> <http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
>
>
>
> ------------------------------------------------------------------------
> Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy! Try it!
> <http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
|