Re: [Pythonmac-SIG] Fun with py2app and OpenGL

2010-03-15 Thread R Fritz

On 2010-03-14 20:21:54 -0700, R Fritz said:


directory, the packages are dropped into ../site-packages.zip, where


Correction, site-packages/..

--
Randolph Fritz
 design machine group, architecture department, university of washington
rfr...@u.washington.edu -or- rfritz...@gmail.com


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Fun with py2app and OpenGL

2010-03-15 Thread Christopher Barker

R Fritz wrote:
Explicitly including packages 'photom' (mine) and 'OpenGL' (published) 


why did you explicitly include them? They should have been picked up by 
py2app unless you import them in an odd way.


I've got an OpenGL app bundling up fine without any tricks, and it puts 
OpenGL into:


Maproom.app/Contents/Resources/lib/python2.5/OpenGL/

maybe there is a py2app recipe that handles that.

-Chris





--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/ORR(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

chris.bar...@noaa.gov
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Fun with py2app and OpenGL

2010-03-15 Thread R Fritz
I don't think I am importing them in an odd way, though photom is in my 
PYTHONPATH. There is an OpenGL recipe, yes.


But, all right, I've got it working. Now, however, I have that site.py 
problem, which I'll be bringing up over on pythonmac.


On 2010-03-15 10:26:39 -0700, Christopher Barker said:


R Fritz wrote:

Explicitly including packages 'photom' (mine) and 'OpenGL' (published)


why did you explicitly include them? They should have been picked up by
py2app unless you import them in an odd way.

I've got an OpenGL app bundling up fine without any tricks, and it puts
OpenGL into:

Maproom.app/Contents/Resources/lib/python2.5/OpenGL/

maybe there is a py2app recipe that handles that.

-Chris



--
Randolph Fritz
 design machine group, architecture department, university of washington
rfr...@u.washington.edu -or- rfritz...@gmail.com


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Fun with py2app and OpenGL

2010-03-15 Thread R Fritz
What's happening is that the files sometimes aren't found in 
site_packages.zip. Say what?


(the site.py problem was a result of zipping and unzipping the app--zip 
did something to the embedded zip files.)


On 2010-03-15 10:26:39 -0700, Christopher Barker said:


R Fritz wrote:

Explicitly including packages 'photom' (mine) and 'OpenGL' (published)


why did you explicitly include them? They should have been picked up by
py2app unless you import them in an odd way.

I've got an OpenGL app bundling up fine without any tricks, and it puts
OpenGL into:

Maproom.app/Contents/Resources/lib/python2.5/OpenGL/

maybe there is a py2app recipe that handles that.

-Chris



--
Randolph Fritz
 design machine group, architecture department, university of washington
rfr...@u.washington.edu -or- rfritz...@gmail.com


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Fun with py2app and OpenGL

2010-03-15 Thread R Fritz
Correction, I think this one was my error, though I still haven't run 
it all the way to ground. Sorry, folks.


Randolph

On 2010-03-15 12:45:16 -0700, R Fritz said:


What's happening is that the files sometimes aren't found in
site_packages.zip. Say what?

(the site.py problem was a result of zipping and unzipping the app--zip
did something to the embedded zip files.)

On 2010-03-15 10:26:39 -0700, Christopher Barker said:


R Fritz wrote:

Explicitly including packages 'photom' (mine) and 'OpenGL' (published)


why did you explicitly include them? They should have been picked up by
py2app unless you import them in an odd way.

I've got an OpenGL app bundling up fine without any tricks, and it puts
OpenGL into:

Maproom.app/Contents/Resources/lib/python2.5/OpenGL/

maybe there is a py2app recipe that handles that.

-Chris



--
Randolph Fritz
 design machine group, architecture department, university of washington
rfr...@u.washington.edu -or- rfritz...@gmail.com


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] Fun with py2app and OpenGL

2010-03-14 Thread R Fritz
Explicitly including packages 'photom' (mine) and 'OpenGL' (published) 
produces strange results when py2app is run. For some reason, instead 
of ending up in the site-packages.zip file, or the site-packages 
directory, the packages are dropped into ../site-packages.zip, where 
they are not found. I ended up hacking this by creating site-packages 
and moving the packages into it, but am still wondering why it doesn't 
just work.


Is there a simple fix I am missing?
--
Randolph Fritz
 design machine group, architecture department, university of washington
rfr...@u.washington.edu -or- rfritz...@gmail.com

setup.py:

This is a setup.py script generated by py2applet

Usage:
   python setup.py py2app


from setuptools import setup

APP = ['PhotomView.py']
DATA_FILES = []
INCLUDES = ['ctypes.util']
PACKAGES = ['photom','OpenGL']
RESOURCES = ['PhotomView.xrc']
OPTIONS = {
   'argv_emulation': True, 
   'includes': INCLUDES,

   'packages': PACKAGES,
   'resources' : RESOURCES
   }

setup(
   app=APP,
   data_files=DATA_FILES,
   options={'py2app': OPTIONS},
   setup_requires=['py2app'],
)


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG