[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-catalog-sig
Subject:    Re: [Catalog-sig] [Distutils] Simultaneous multi-version support
From:       zooko <zooko () zooko ! com>
Date:       2008-10-08 13:15:08
Message-ID: 4CA944A8-FD07-4157-BB2E-4F0D5D674066 () zooko ! com
[Download RAW message or body]

We use pkg_resources.require() in Tahoe solely in order to get better  
and earlier error messages in the case of missing or wrong-version  
dependencies:

http://allmydata.org/trac/tahoe/browser/_auto_deps.py?rev=2968#L22

"""
The purpose of this function is to raise a pkg_resources exception if  
any of the
requirements can't be imported.  This is just to give earlier and  
more explicit error
messages, as opposed to waiting until the source code tries to import  
some module from one
of these packages and gets an ImportError.  This function gets called  
from
src/allmydata/__init__.py .
"""

We are considering experimenting with the multi-version feature of  
eggs, but haven't tried it yet.

pkg_resources.require() is not particularly problematic for us as far  
as I recall.

Regards,

Zooko
---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $5/month

_______________________________________________
Catalog-SIG mailing list
Catalog-SIG@python.org
http://mail.python.org/mailman/listinfo/catalog-sig
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic