Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

pyenv/pyenv-pip-rehash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Since Pyenv v20141211, this plugin's functionality is present in the core Pyenv so this plugin is no longer needed.

pyenv-pip-rehash

Installation

Installing as a pyenv plugin

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

Installing with Homebrew (for OS X users)

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

Usage

  1. pip install a pip that provides executables.
  2. Marvel at how you no longer need to type pyenv rehash.

How It Works

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.

History

0.0.4 (Mar 30, 2014)

0.0.3 (Jan 22, 2014)

  • Rewrite with using exec hook of pyenv
  • Support easy_install in addition to pip
  • Add tests

0.0.2 (Jun 14, 2013)

  • Surely remove ${PIP_SHIM_PATH} on exit

0.0.1 (May 13, 2013)

  • Initial public release.

License

(The MIT License)

Copyright (c) 2014 Yamashita, Yuu <yamashita@geishatokyo.com>

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.

About

Never run `pyenv rehash` again

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages