btw. the py2exeeggs.py trick did not work for me, this is why i did this
enrike
altern(e)k dio:
> hi
>
> i have been trying different ways to get py2exe to create a standalone.
> Py2exe seems to have problems with the eggs. This is how i got it to
> work, but I would like to hear if there is some better way to do it.
>
> first i need to include this at the top of the python file i want to
> make standalone.
> sys.path.insert(0, os.path.join(sys.prefix, "PyOpenglxxxxxx.egg"))
> sys.path.insert(0, os.path.join(sys.prefix, "setuptoolsxxxxxx.egg"))
>
> with the right name of the pyopengl and setuptools eggs at site-pakcages
>
> then I run the setup.py :
> $ python setup.py p2exe -e OpenGL -i
> ctypes,ctypes.util,weakref,new,distutils.util,logging
>
> then I must manually copy the PyOpenGL and setuptools eggs to the
> dist/lib folder in the distribution.
>
> only after this it does work as standalone. Anyone knows a better solution?
>
> thanks!
>
> enrike
>
|