[Pythonmac-SIG] Py2App for Python 2.6?

Benjamin Schollnick bschollnick at UR.Rochester.edu
Fri Aug 21 21:01:18 CEST 2009


Okay, I see py2app has had some changes, but I can¹t seem to find more
detail on the changes for setup.py  file...

I can¹t seem to get py2app to bundle up wxpython with the application...

Setup.py:

"""
This is a setup.py script generated by py2applet

Usage:
    python setup.py py2app
"""

from setuptools import setup
import wx

APP = ['run_installers.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}

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


If change  setup_requires=['py2app']  to     setup_requires=['py2app', Œwx¹]
I receive:

dhcp105-53:installer Ben$ python setup.py py2app
/Library/Python/2.6/site-packages/Pyrex/Compiler/Errors.py:17:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
  self.message = message
Couldn't find index page for 'wx' (maybe misspelled?)
No local packages or download links found for wx


So I have removed the Œwx¹ from the setup_requires line, and instead
attempted to force in the inclusion:

python setup.py py2app --includes=wx --packages=wx

And it appeared to bundle but if I run the application I receive an GUI
import error ³importError: No Module named wx².
Can anyone advise? 

        - Benjamin



On 8/21/09 2:42 PM, "Benjamin Schollnick" <bschollnick at ur.rochester.edu>
wrote:

> Folks,
> 
> It¹s been a long time, since I looked at Mac python bundlers....  And
> especially with Snow Leopard, what¹s the state of Py2App?  Are there any other
> recommendations for making applications out Python scripts?  I need to ensure
> support for Leopard, and Snow Leopard....
> 
>         - Ben
> 
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

     - Benjamin
        
------------- 
University Information Technology
Information Technology Specialist
            
        In an Emergency, first contact the University IT Help Desk:
            Extension 52000         (585-275-2000)

        Then feel free to contact me at:
            Email       - Benjamin.Schollnick at rochester.edu
            Cell          - (585)747-2349
            Desk        - Extension 55462  (585-275-5462)
-------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090821/20f120eb/attachment-0001.htm>


More information about the Pythonmac-SIG mailing list