pypa/pip — pull request #1677 by techtonik (2014-03-25 14:18:14+00:00)
Title: Pseudocode to fix issue #1299

I am not sure how to detect that pip is run as `pip.exe`, and it may happen that solution won't work.