[Distutils] Help with buildout
aclark at aclark.net
Sun Mar 31 19:34:07 CEST 2013
On 2013-03-30 23:32:28 +0000, John Anderson said:
> I'm trying to use buildout to pull in 4 github repositories and combine
> their wsgi applications together using paste's urlmap. A few things
> aren't working the way I expect and so I'm looking for some more
> This is my buildout.cfg:
> 1. I had to declare a [pyramid] section that pulls in Pyramid with the
> zc.recipe.egg recipe so that it would drop the entry_point scripts in
> the generated bin/ folder. Is there a way for it to do this from
> dependencies declared in my install_requires in setup.py rather than
> being declared in the buildout?
AFAIK, and assuming I understand your question, no. The recipes (or
extensions) do all the work.
> 2. The 2nd problem is after I run buildout, I'm not able to import
> I see the egg in my sys.path:
> >>> import sys
> >>> sys.path
> but if I try to import from it:
> >>> from paste.deploy import loadserver
> Traceback (most recent call last):
> File "<console>", line 1, in <module>
> ImportError: No module named deploy
> PasteDeploy is defined as a dependency and gets pulled in properly but
> for some reason the interpreter isn't seeing it.
> any ideas?
Remove .installed.cfg and try again, works for me with this buildout:
> Distutils-SIG maillist - Distutils-SIG at python.org
Alex Clark · http://about.me/alex.clark
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG