I have two packages that install different packages with the same name. They are both "packages" in that they have top-level setup.py
files which specify package=['foo']
in the setup
command.
If I install using distutils.core
, 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 setuptools
, the two packages get installed into different eggs.
One option would be to explicitly set sys.path
before importing the package name; this seems "un-pythonic" and rather dirty.
Assuming I have these two identically named packages installed in different eggs
from setuptools, how do I specify which is imported?