Hello,

I'm trying to use py2app but I'm having a few problems getting it to output what I want. I recently built it and its dependencies from their respective Subversion repositories (usually on pythonmac.org). Right now, my application is not built with all of the needed dependencies, includes some files I don't want it to, and some that it *does* build with aren't found when I import them.

Here's an overview of what my project looks like:

        packageA/
                __init__.py
                setup.py
                library.dylib
                ...
        packageB/
                __init__.py
                setup.py
                ..
        mainapp/
                mainapp.py
                setup.py
                packageX/
                        Makefile
                        __init__.py
                        ...
                packageY/
                        __init__.py
                        ...
                ...

Both packageA and packageB are installed as eggs. I want mainapp to be built with py2app and pull in both packageA and packageB. Furthermore, packageX and packageY should be included. I DO want packageA to include the library.dylib file, but I DON'T want packageX to include the Makefile. Finally, I'd like all .pyc files instead of .py files.

As it stands, I'm getting packageA and packageB inside mainapp.app/ Contents/Resources/lib/python2.5/site-packages.zip, but library.dylib is not included. packageX and packageY are in mainapp.app/Contents/ Resources/lib/python2.5, but they include their Makefiles. When I launch the built app, I get a message saying packageX is not found.

Here is my setup.py script:

from distutils.core import setup
import py2app

setup(
## PROJECT INFORMATION ##
        name = "MainApp",
        version = "3.0",
        author = "Ryan Govostes,
        url = "http://www.rgov.org/";,
## BUILD DIRECTIVES ##
        app = [ "mainapp.py" ],
        options = dict(
                py2app = dict(
                        packages = [ "packageX", "packageY" ],
                )
        )
)

Sorry if this seems like a rather poor explanation of what I'm trying to do, but I'm at a loss for how to start narrowing down my problems. I welcome any help you can offer me.

Regards,
Ryan Govostes
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to