[Distutils] Help with buildout
Alex Clark
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
> information:
>
> This is my buildout.cfg:
>
> https://github.com/sontek/notaliens.com/blob/master/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
> paste.deploy:
>
> I see the egg in my sys.path:
>
> bin/py
> >>> import sys
> >>> sys.path
> <cut>
>
> '/home/sontek/code/test_notaliens/notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg',
>
>
>
> 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:
https://gist.github.com/aclark4life/5281288
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
--
Alex Clark · http://about.me/alex.clark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130331/89b22a9b/attachment.html>
More information about the Distutils-SIG
mailing list