[Distutils] IBM Developerworks setuptools article - example doesnt work ?

Michael Bayer mike_mp at zzzcomputing.com
Mon Oct 30 21:54:05 CET 2006


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, not useable (but i have not yet searched for this answer, so  
feel free to ignore).

Too bad a high-profile article on IBM got the details on this  
inaccurately.


More information about the Distutils-SIG mailing list