Merge branch 'preparing-removal-of-pyenv-version-ext'

This commit is contained in:
Yamashita Yuu 2013-06-13 12:40:13 +09:00
commit 499edda1d7
5 changed files with 19 additions and 4 deletions

2
plugins/.gitignore vendored
View File

@ -1,4 +1,4 @@
/*
!/.gitignore
!/pyenv-version-ext
!/version-ext-compat
!/python-build

View File

@ -4,13 +4,24 @@ pyenv-version-ext is a [pyenv](https://github.com/yyuu/pyenv) plugin
that provides a `pyenv push` and `pyenv pop` commands to manage Python
versions.
(NOTICE:
This project has been moved out as external plugin of pyenv.
The version-ext-compat has left for backward compatibility, but will be removed from future release of pyenv.
See also [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext).)
## Installation
### Installing as an pyenv plugin (recommended)
### Installing as an pyenv plugin
You need nothing to do since python-build is bundled with pyenv by
default.
Installing pyenv-version-ext as a pyenv plugin will give you access to the
`pyenv push` and `pyenv pop` commands.
$ git clone git://github.com/yyuu/pyenv-version-ext.git ~/.pyenv/plugins/pyenv-version-ext
This will install the latest development version of pyenv-version-ext into
the `~/.pyenv/plugins/pyenv-version-ext` directory. From that directory, you
can check out a specific release tag. To update pyenv-version-ext, run `git
pull` to download the latest changes.
## Usage

View File

@ -5,6 +5,8 @@ set -e
IFS=: versions=($(pyenv-version-name))
echo "WARNING: The \`pop' command will be removed from pyenv. Please install https://github.com/yyuu/pyenv-version-ext." 1>&2
length="${#versions[@]}"
PYENV_VERSION_NAMES=()
for ((i=0; i<length-1; i++)); do

View File

@ -7,6 +7,8 @@ IFS=: PYENV_VERSION_NAMES=($(pyenv-version-name))
versions=("$@")
PYENV_VERSION_NAMES=("${PYENV_VERSION_NAMES[@]}" "${versions[@]}")
echo "WARNING: The \`push' command will be removed from pyenv. Please install https://github.com/yyuu/pyenv-version-ext." 1>&2
if [ -n "$PYENV_VERSION" ]; then
IFS=: PYENV_VERSION="${PYENV_VERSION_NAMES[*]}"
echo "export PYENV_VERSION=\"${PYENV_VERSION}\""