[wxPython-users] py2app and wx

Christopher Barker Chris.Barker at noaa.gov
Wed Dec 12 12:37:43 PST 2007


py2app works fine with wx. Here's one example setup.py that works for me:

#!/usr/bin/env python2.5
"""
Script to build an app bundle from the converter wxPython application on 
OS-X 10.4

% python setup.py py2app

"""

import Converter # just to get version number and correct version of wx

from setuptools import setup

Plist={}

APP = ['Converter.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True, # this puts the names of dropped 
files into sys.argv when starting the app.
            'iconfile': 'Icons/ConverterIcon.icns',
            'plist': Plist,
            }


setup(
     app=APP,
     data_files=DATA_FILES,
     version=Converter.__version__,
     description="Unit conversion module and GUI utility",
     author="Christopher Barker",
     author_email="Chris.Barker at noaa.gov",
     options={'py2app': OPTIONS},
     setup_requires=['py2app'],
)


-- 
Christopher Barker, Ph.D.
Oceanographer

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

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list