<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1187.37">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 12.0px; font: 16.0px Times; color: #011892}
p.p4 {margin: 0.0px 0.0px 0.0px 12.0px; font: 16.0px Times; color: #011892; min-height: 19.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica}
p.p7 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 14.0px; font: 12.0px Helvetica; color: #011892}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #929292}
span.s1 {text-decoration: underline}
</style>
</head>
<body>
<p class="p1">On 2013-03-30 23:32:28 +0000, John Anderson said:</p>
<p class="p2"><br></p>
<p class="p3">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:</p>
<p class="p4"><br></p>
<p class="p3">This is my buildout.cfg:</p>
<p class="p4"><br></p>
<p class="p3"><span class="s1"><a href="https://github.com/sontek/notaliens.com/blob/master/buildout.cfg">https://github.com/sontek/notaliens.com/blob/master/buildout.cfg</a></span></p>
<p class="p4"><br></p>
<p class="p3">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?</p>
<p class="p5"><br></p>
<p class="p5"><br></p>
<p class="p6">AFAIK, and assuming I understand your question, no. The recipes (or extensions) do all the work.</p>
<p class="p5"><br></p>
<p class="p5"><br></p>
<p class="p4"><br></p>
<p class="p3">2. The 2nd problem is after I run buildout, I'm not able to import paste.deploy:</p>
<p class="p4"><br></p>
<p class="p3">I see the egg in my sys.path:</p>
<p class="p4"><br></p>
<p class="p3">bin/py</p>
<p class="p3">>>> import sys</p>
<p class="p3">>>> sys.path</p>
<p class="p3"><cut></p>
<p class="p3"> '/home/sontek/code/test_notaliens/<a href="http://notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg"><span class="s1">notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg</span></a>',</p>
<p class="p4"><br></p>
<p class="p4"><br></p>
<p class="p3">but if I try to import from it:</p>
<p class="p4"><br></p>
<p class="p3">>>> from paste.deploy import loadserver</p>
<p class="p3">Traceback (most recent call last):</p>
<p class="p3">  File "<console>", line 1, in <module></p>
<p class="p3">ImportError: No module named deploy</p>
<p class="p4"><br></p>
<p class="p3">PasteDeploy is defined as a dependency and gets pulled in properly but for some reason the interpreter isn't seeing it.</p>
<p class="p4"><br></p>
<p class="p4"><br></p>
<p class="p3">any ideas?</p>
<p class="p5"><br></p>
<p class="p5"><br></p>
<p class="p6">Remove .installed.cfg and try again, works for me with this buildout:<span class="Apple-converted-space">  </span>https://gist.github.com/aclark4life/5281288</p>
<p class="p5"><br></p>
<p class="p5"><br></p>
<p class="p7">_______________________________________________</p>
<p class="p7">Distutils-SIG maillist<span class="Apple-converted-space">  </span>-<span class="Apple-converted-space">  </span>Distutils-SIG@python.org</p>
<p class="p7">http://mail.python.org/mailman/listinfo/distutils-sig</p>
<p class="p5"><br></p>
<p class="p8"><br></p>
<p class="p9">--<span class="Apple-converted-space"> </span></p>
<p class="p9">Alex Clark · http://about.me/alex.clark</p>
</body>
</html>