title: Python: multiple packages with multiple setup.py files
body: <p>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:</p>
  
  <pre><code>somestuff_root/
      setup.py
      myutils/
          __init__.py
          a/
              __init__.py
              somestuff.py
  </code></pre>
  
  <p>I have another package setup like this:</p>
  
  <pre><code>otherstuff_root/
      setup.py
      myutils/
          __init__.py
          b/
              __init__.py
              otherstuff.py
  </code></pre>
  
  <p>so things are organized in my site-packages/ directory like:</p>
  
  <pre><code>myutils/
      a/
          somestuff.py
      b/
          otherstuff.py
  </code></pre>
  
  <p>which is exactly what I want after installing them both with pip.</p>
  
  <p>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.</p>
  
  <p>I suspect I'm confusing things with having multiple <strong>init</strong>.py files in with myutils/ folders, but I'm not sure how else to get these to work properly.</p>
  
  <p>--</p>
  
  <p>Also found this helpful page:</p>
  
  <p><a href="http://www.sourceweaver.com/musings/posts/python-namespace-packages" rel="nofollow">http://www.sourceweaver.com/musings/posts/python-namespace-packages</a></p>