MacPython Logo from __future__ import *

buy music albums Silver Apples buy mp3 albums Tarrus Riley buy tracks mp3 Kravits buy Reaper albums mp3 buy Kravits albums music buy music Evita CD online albums mp3 Silver Apples download Madonna CD music buy tracks music Kravits download music albums Silver Apples

2004-02-20

pth files are your friend

Filed under: python — bob @ 8:17 pm

Why is it that many Python packages insist on littering your site-packages folder? It's not very hard to make a setup.py that has its own little microcosm referenced by a pth file, and it makes the user's life so much better. See Numeric, PIL, or PyObjC for decent examples.

Bonus: the user can easily uninstall, cleanly upgrade, or even move the package to an alternate location simply by moving it and changing the path in the pth.

Update: It looks like this is done with the extra_path argument to setup(...). I would've mentioned it, but I didn't realize that it wasn't documented outside of the source, mailing lists, and files in an old CVS attic!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

WP-Hashcash: protecting you from spam.

Powered by WordPress