[Pythonmac-SIG] Fun with py2app and OpenGL
R Fritz
rfritz at u.washington.edu
Mon Mar 15 04:21:54 CET 2010
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
rfritz at u.washington.edu -or- rfritz333 at 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'],
)
More information about the Pythonmac-SIG
mailing list