[Distutils] Help with buildout

John Anderson sontek at gmail.com
Sun Mar 31 00:32:28 CET 2013


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?

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130330/fa119146/attachment.html>


More information about the Distutils-SIG mailing list