Merge branch 'preparing-removal-of-pyenv-version-ext'
This commit is contained in:
commit
499edda1d7
2
plugins/.gitignore
vendored
2
plugins/.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
!/.gitignore
|
!/.gitignore
|
||||||
!/pyenv-version-ext
|
!/version-ext-compat
|
||||||
!/python-build
|
!/python-build
|
||||||
|
@ -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
|
that provides a `pyenv push` and `pyenv pop` commands to manage Python
|
||||||
versions.
|
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
|
## 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
|
Installing pyenv-version-ext as a pyenv plugin will give you access to the
|
||||||
default.
|
`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
|
## Usage
|
||||||
|
|
@ -5,6 +5,8 @@ set -e
|
|||||||
|
|
||||||
IFS=: versions=($(pyenv-version-name))
|
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[@]}"
|
length="${#versions[@]}"
|
||||||
PYENV_VERSION_NAMES=()
|
PYENV_VERSION_NAMES=()
|
||||||
for ((i=0; i<length-1; i++)); do
|
for ((i=0; i<length-1; i++)); do
|
@ -7,6 +7,8 @@ IFS=: PYENV_VERSION_NAMES=($(pyenv-version-name))
|
|||||||
versions=("$@")
|
versions=("$@")
|
||||||
PYENV_VERSION_NAMES=("${PYENV_VERSION_NAMES[@]}" "${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
|
if [ -n "$PYENV_VERSION" ]; then
|
||||||
IFS=: PYENV_VERSION="${PYENV_VERSION_NAMES[*]}"
|
IFS=: PYENV_VERSION="${PYENV_VERSION_NAMES[*]}"
|
||||||
echo "export PYENV_VERSION=\"${PYENV_VERSION}\""
|
echo "export PYENV_VERSION=\"${PYENV_VERSION}\""
|
Loading…
x
Reference in New Issue
Block a user