pypa/pip — pull request #491 by ianb (2012-03-23 22:19:51+00:00)
Title: Look far and wide (or "here") for config files, and do substitution

This pull request makes pip look in the current and parent directories for `pip.conf` and loads it. Also `%(here)s` gets substituted in config values.

Perhaps because I had an old checkout I got a few extra commits in this pull request, not sure what those are about; maybe there's a way to get rid of them.

The motivation here is to make directory-local vendor libraries easier, with a config file like:

[install]
install_option = --install-purelib=%(here)s/vendor
--install-platlib=%(here)s/vendor-binary
--install-scripts=%(here)s/vendor/bin

Or something like that... the idea isn't complete. Feedback appreciated.