On Thu, Oct 15, 2009 at 12:41 PM, Jason S. <jas...@tuffmail.com> wrote:
> > I still don't get setuptools. I don't understand namespace packages, or > > rather their deployment. I don't get why I can't move (for example) > paste, > > and the Paste* items to another directory that is ON sys.path and have it > be > > import-able. All of my frustrations with GAE have been of this sort. > > When you install eggs with easy_install, it adds the egg's path to > easy_install.pth. If you move the egg somewhere else, it won't work > That part I get. In fact, I've often modified easy_install.pth manually. But I'm using pip. And pip doesn't mess with that file, nor it *seems* any other meta-data anywhere on sys.path. But still, I couldn't move Paste* around. I was considering trying an install with easy_install and then hand-modifying easy_install.pth next. > unless it's added to the path somehow. BTW, I don't think GAE > uses .pth files, which is why sys.path manipulation is necessary. > It *seems *like this isn't true. If I omit pth files when uploading to GAE, my app is failing with a 500 error. But I wouldn't trust that yet... can you do a test on your setup and see if you need or don't need the .pth files? (up to and including easy_install) > When you install them with pip, I think they overlap (i.e. one paste/ > directory in site-packages/). > Yes, that's true, but I don't understand why moving those directories from one site-packages to another should matter. I can't find whatever cruft is telling python to look in that and only that sys.path location for paste. > I'm not sure what all the problems you're having with setuptools > entail, but my app.py *prepends* to sys.path, which works a little > better because it gets around installed versions of libraries in the > GAE environment. > You mean to have the upgraded webob for example? I use the GAE SDK instead of paster serve, because then all the GAE- > specific libs should be provided without moving anything. Can you use > datastore, etc, locally without the SDK? > Yes. I simply add the path to the google libraries to sys.path; I'm running DataStore (well, whatever emulation that the SDK provides on my "paster serve development.ini" pylons app. Which means I can use the debugger, webtest, etc. Can you use the debugger (weberror)? > Interesting. Maybe that step could be eliminated. I think I was > getting DistributionNotFound from pkg_resources and figured that it > would be better to work around eggs/the egg loader. > I think I got around that by dropping an empty __init__.py file into paste/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---