I'm having a hard time constructing my Python setup.py files to do what I want. I have one pacakge set up like this:
somestuff_root/
setup.py
myutils/
__init__.py
a/
__init__.py
somestuff.py
I have another package setup like this:
otherstuff_root/
setup.py
myutils/
__init__.py
b/
__init__.py
otherstuff.py
so things are organized in my site-packages/ directory like:
myutils/
a/
somestuff.py
b/
otherstuff.py
which is exactly what I want after installing them both with pip.
My problem is that uninstalling the second package (with pip) also wipes out the first one -- this is not what I want to happen. I would like it just to remove myutils.b and keep myutils.a where it is.
I suspect I'm confusing things with having multiple init.py files in with myutils/ folders, but I'm not sure how else to get these to work properly.
--
Also found this helpful page:
http://www.sourceweaver.com/musings/posts/python-namespace-packages