title: Python: Two packages with the same name; how do you specify which is loaded?
body: <p>I have two packages that install different packages with the same name.  They are both "packages" in that they have top-level <code>setup.py</code> files which specify <code>package=['foo']</code> in the <code>setup</code> command.</p>
  
  <p>If I install using <code>distutils.core</code>, the last to be installed overwrites the previous one (but I think wouldn't overwrite unless the .py files all had the same names?).  If I install using <code>setuptools</code>, the two packages get installed into different eggs.</p>
  
  <p>One option would be to explicitly set <code>sys.path</code> before importing the package name; this seems "un-pythonic" and rather dirty.  </p>
  
  <p>Assuming I have these two identically named packages installed in different <code>eggs</code> from setuptools, how do I specify which is imported?</p>