[SciPy-user] egg dependency?

Robert Kern robert.kern at gmail.com
Fri Dec 2 16:15:23 CST 2005


David M. Cooke wrote:

> BTW, this doesn't mean that scipy is eggable yet :-) I think egging
> scipy.core is fine, but you can't add scipy full. I've got to figure
> out how to use setuptools' namespace feature, which is complicated by
> the fact that the scipy.__init__ included with scipy.core is (very
> much) not empty.

Actually, it is eggable. You need to add something like this to both
__init__.py scripts.

try:
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    pass

Note: the try: except: is only there for source compatibility with
non-egg installs.

-- 
Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter



More information about the SciPy-user mailing list