I have two packages that install different packages with the same name. They are both “packages” in that they have top-level files setup.pythat are indicated package=['foo']on the command setup.
If I install with distutils.core, the last one to be installed will overwrite the previous one (but I think I would not overwrite if all the .py files had the same name?). If I install using setuptools, these two packages are installed in different eggs.
One option would be to explicitly set sys.paththe package name before importing; it seems "non-pythic" and pretty dirty.
Assuming I have these two identically named packages installed in different eggsof setuptools, how can I specify an importable one?
source
share