[Distutils] namespace_packages

Phillip J. Eby pje at telecommunity.com
Wed Jan 18 21:05:26 CET 2006

At 01:35 PM 01/18/2006 -0500, Charlie Moad wrote:
>Following the instruction for setuptools, I am trying to make
>matplotlib and basemap (a mpl toolkit) share the namespace
>"matplotlib/toolkits".  I can build and install the eggs no problems.
>"matplotlib/toolkits" is in both's "EGG-INFO/namespace_packages.txt"

It should be matplotlib.toolkits, not matplotlib/toolkits.

>files.  I have added __init__.py files with
>"__import__('pkg_resources').declare_namespace(__name__)" in both the
>mpl and basemap matplotlib/toolkits folders.  Basically I have done a
>ton of playing around and "from matplotlib.toolkits import basemap"
>will not work.  It is always limited to the scope of the matplotlib
>egg which it is hitting first.

Did you run "setup.py develop" or "setup.py install" in both projects?

>   Are the docs not reflective of the
>0.6a9 release?  Any help is greatly appreciated.

AFAIK, the docs are correct.  If you can point me to the source code for 
your packages I can take a look at them.

More information about the Distutils-SIG mailing list