[Distutils] Installing large applications

Bob Ippolito bob at redivi.com
Tue Jun 15 21:36:12 EDT 2004

On Jun 15, 2004, at 8:20 PM, Tim Peters wrote:

> [Bob Ippolito]
>> What about pth files?  I use them all the time for adding additional 
>> site
>> directories.  Try making a pth file with something like this in it and
>> dropping it into the system site-packages:
>> import site, os; site.addsitedir(os.path.expanduser(os.path.join("~",
>   "YourApplication", "site-packages")))
> How does this help using more than one version of ZODB (the original
> example)?  The version you get depends on which account you're logged 
> in
> with?  That could work -- for some definition of "work" <wink>.  A 
> problem
> is that, at least on Windows, ZODB gets installed directly under the 
> Python
> installation's site-packages now, and the native site-packages trumps
> (appears earlier in sys.path than) anything .pth files add.  We would 
> have
> to install ZODB elsewhere all the time (not necessarily a bad idea!).

Nothing is stopping you from doing sys.path.insert(0, ...) in lieu of 
addsitedir, so long as you don't have to process additional pth files.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20040615/53fb05bb/smime-0001.bin

More information about the Distutils-SIG mailing list