At 03:54 PM 10/30/2006 -0500, Michael Bayer wrote: >On Oct 30, 2006, at 3:00 PM, Bob Ippolito wrote: > > Feature. It can do multi-version installs, but only if explicitly > > specified. > > > > The problem is that 1.2.1 is already on sys.path, so setuptools gives > > up because it doesn't know if something is using Gnosis-Utils or not. > > If the directory *containing* the egg was on sys.path, then it would > > pick the exact version... but then you must *always* require it before > > it is imported. > >Ah, terrific. -m allows this feature, although i wonder why -m then >makes regular "import", for those scripts that just want the default >version,
When you have multiple versions, there is no such thing as a default version. Note, however, that if you simply build your main program as a setuptools project, and define its dependencies in your setup.py, then you don't need to worry about any of this; even if there is a default version it can be overridden when the dependency is specified using setuptools. Most code shouldn't call require() at runtime; it should just declare dependencies in a setup script, making this whole question a nonissue. _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
