Mike Orr wrote:
> We're testing it right now.  I'm cc'ing my colleague who's involved
> more directly with it.

That would be me.

I'm trying to bundle up a pylons based app with py2app on OS-X. I've run
into a problem with Paste. The issue is that paste (and paste.deploy,
and paste.script) is set up as a setuptools namespace package.


py2app does not work with namespace packages. In fact, it pre-dated
setuptools. It can deal with regular eggs, as long at they are installed
unzipped:

easy_install -Z NameOfPackage

However, it's choking on namespace packages.

I've tried including the extra stuff that it doesn't pick up, but I seem
to have gotten into a continuous string of egg dependencies.

Then I tried re-constructing paste as a regular old package, bypassing
setuptools altogether. I downloaded the source of Paste, PasteDeploy and
PasteScript, put the "deploy" and "script" dirs in the paste dir, making 
it all one package. Then I removed all the references to namespaces that 
I could find. I then dropped the paste dir directly in site-packages, 
bypassing setuptools (and distutils) altogether.

This ran OK from the command line, but when I bundled it up, it started 
giving me errors about packages not being found -- it appears that 
pkg_resources is called, and that sets up a sting of setuptools 
dependency checking. All the stuff is in the bundle, but not as eggs, so 
the checks fail.

So, is there a way to turn off the use of pkg_resources in paste?

This just reminds me once again how I don't like any kind of import 
magic -- it just isn't worth the hassles. Oh well.

Thanks,

-Chris



-- 
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

[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to