Kevin Dangoor wrote:
On 11/4/05, Phillip J. Eby <[EMAIL PROTECTED]> wrote:

asimov:~/turbogears jeremy$ sudo python setup.py develop
--script-dir=/usr/local/bin
Traceback (most recent call last):
 File "setup.py", line 14, in ?
   from docgen import GenSite
 File "/Users/jeremy/turbogears/docgen.py", line 7, in ?
   pkg_resources.require("Kid >= 0.6.4")

Your setup script imports docgen, which in turn runs the require().
Modules really shouldn't require() in this way.


I'm puzzled as to why explicitly asking for Kid >= 0.6.4 cares about
the TurboGears egg info... I had put this import in a try/except
DistributionNotFound to handle the initial install case, and I think
this used to work.

Is your suggestion that the module should just import kid?

I haven't tracked all of this discussion, but I think this is a related issue: http://mail.python.org/pipermail/distutils-sig/2005-October/005266.html

Hmm... apparent I didn't follow up on PJE's response. I actually don't remember seeing the response. Hmm... well, anyway, another data point.

--
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org

Reply via email to