Since Pyenv v20141211, this plugin's functionality is present in the core Pyenv so this plugin is no longer needed.
Make sure you have pyenv 0.2.0 or later, then run:
git clone https://github.com/yyuu/pyenv-pip-rehash.git $(pyenv root)/plugins/pyenv-pip-rehash
Mac OS X users can install pyenv-pip-rehash with the Homebrew package manager.
This is the recommended method of installation if you installed pyenv with Homebrew.
$ brew install homebrew/boneyard/pyenv-pip-rehash
Or, if you would like to install the latest development release:
$ brew install --HEAD homebrew/boneyard/pyenv-pip-rehash
pip install
a pip that provides executables.- Marvel at how you no longer need to type
pyenv rehash
.
pyenv-pip-rehash hooks every invokation of pip
commands via pyenv
.
If the first argument for pip
is install
or uninstall
, it invokes pyenv rehash
automatically.
0.0.4 (Mar 30, 2014)
- Fix infinite loop issue with
system
version (pyenv/pyenv#146)
0.0.3 (Jan 22, 2014)
- Rewrite with using
exec
hook ofpyenv
- Support
easy_install
in addition topip
- Add tests
0.0.2 (Jun 14, 2013)
- Surely remove
${PIP_SHIM_PATH}
on exit
0.0.1 (May 13, 2013)
- Initial public release.
(The MIT License)
Copyright (c) 2014 Yamashita, Yuu <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINpipENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.