Re: [Distutils] namespace_packages
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.
I tried the "." and I keep getting: error in basemap setup command: Distribution contains no modules or packages for namespace package 'matplotlib.toolkits' On 1/18/06, Phillip J. Eby <pje@telecommunity.com> wrote:
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.
participants (2)
-
Charlie Moad -
Phillip J. Eby