Support 2.7.4, 3.2.4, 3.3.1

This commit is contained in:
f440 2013-04-07 12:32:55 +09:00
parent 6e58c43d8a
commit bb2d058167
4 changed files with 52 additions and 43 deletions

View file

@ -128,8 +128,8 @@ Each Python version is installed into its own directory under
`~/.pyenv/versions`. For example, you might have these versions `~/.pyenv/versions`. For example, you might have these versions
installed: installed:
* `~/.pyenv/versions/2.7.3/` * `~/.pyenv/versions/2.7.4/`
* `~/.pyenv/versions/3.3.0/` * `~/.pyenv/versions/3.3.1/`
* `~/.pyenv/versions/pypy-1.9/` * `~/.pyenv/versions/pypy-1.9/`
Version names to pyenv are simply the names of the directories in Version names to pyenv are simply the names of the directories in
@ -166,9 +166,9 @@ easy to fork and contribute any changes back upstream.
$ exec $SHELL $ exec $SHELL
5. Install Python versions into `~/.pyenv/versions`. For example, to 5. Install Python versions into `~/.pyenv/versions`. For example, to
install Python 2.7.3, download and unpack the source, then run: install Python 2.7.4, download and unpack the source, then run:
$ pyenv install 2.7.3 $ pyenv install 2.7.4
**NOTE** If you need to pass configure option to build, please use **NOTE** If you need to pass configure option to build, please use
```CONFIGURE_OPTS``` environment variable. ```CONFIGURE_OPTS``` environment variable.
@ -256,7 +256,7 @@ overrides the global version, and can be overridden itself by setting
the `PYENV_VERSION` environment variable or with the `pyenv shell` the `PYENV_VERSION` environment variable or with the `pyenv shell`
command. command.
$ pyenv local 2.7.3 $ pyenv local 2.7.4
When run without a version number, `pyenv local` reports the currently When run without a version number, `pyenv local` reports the currently
configured local version. You can also unset the local version: configured local version. You can also unset the local version:
@ -273,30 +273,30 @@ read a local version specified in an `.pyenv-version` file, but a
You can specify multiple versions as local Python. Commands You can specify multiple versions as local Python. Commands
within these Python versions are searched by specified order. within these Python versions are searched by specified order.
$ pyenv local 2.7.3 3.2.3 $ pyenv local 2.7.4 3.2.4
$ pyenv local $ pyenv local
2.7.3 2.7.4
3.2.3 3.2.4
$ pyenv which python2.7 $ pyenv which python2.7
/home/yyuu/.pyenv/versions/2.7.3/bin/python2.7 /home/yyuu/.pyenv/versions/2.7.4/bin/python2.7
$ pyenv which python3.2 $ pyenv which python3.2
/home/yyuu/.pyenv/versions/3.2.3/bin/python3.2 /home/yyuu/.pyenv/versions/3.2.4/bin/python3.2
$ pyenv which python $ pyenv which python
/home/yyuu/.pyenv/versions/2.7.3/bin/python /home/yyuu/.pyenv/versions/2.7.4/bin/python
You can manage your version stack by `pyenv push` and `pyenv pop`. You can manage your version stack by `pyenv push` and `pyenv pop`.
$ pyenv local $ pyenv local
2.7.3 2.7.4
3.2.3 3.2.4
$ pyenv push 3.3.0 $ pyenv push 3.3.1
$ pyenv local $ pyenv local
2.7.3 2.7.4
3.2.3 3.2.4
3.3.0 3.3.1
$ pyenv pop $ pyenv pop
2.7.3 2.7.4
3.2.3 3.2.4
### pyenv global ### pyenv global
@ -305,7 +305,7 @@ the version name to the `~/.pyenv/version` file. This version can be
overridden by an application-specific `.python-version` file, or by overridden by an application-specific `.python-version` file, or by
setting the `PYENV_VERSION` environment variable. setting the `PYENV_VERSION` environment variable.
$ pyenv global 2.7.3 $ pyenv global 2.7.4
The special version name `system` tells pyenv to use the system Python The special version name `system` tells pyenv to use the system Python
(detected by searching your `$PATH`). (detected by searching your `$PATH`).
@ -318,30 +318,30 @@ currently configured global version.
You can specify multiple versions as global Python. Commands You can specify multiple versions as global Python. Commands
within these Python versions are searched by specified order. within these Python versions are searched by specified order.
$ pyenv global 2.7.3 3.2.3 $ pyenv global 2.7.4 3.2.4
$ pyenv global $ pyenv global
2.7.3 2.7.4
3.2.3 3.2.4
$ pyenv which python2.7 $ pyenv which python2.7
/home/yyuu/.pyenv/versions/2.7.3/bin/python2.7 /home/yyuu/.pyenv/versions/2.7.4/bin/python2.7
$ pyenv which python3.2 $ pyenv which python3.2
/home/yyuu/.pyenv/versions/3.2.3/bin/python3.2 /home/yyuu/.pyenv/versions/3.2.4/bin/python3.2
$ pyenv which python $ pyenv which python
/home/yyuu/.pyenv/versions/2.7.3/bin/python /home/yyuu/.pyenv/versions/2.7.4/bin/python
You can manage your version stack by `pyenv push` and `pyenv pop`. You can manage your version stack by `pyenv push` and `pyenv pop`.
$ pyenv global $ pyenv global
2.7.3 2.7.4
3.2.3 3.2.4
$ pyenv push 3.3.0 $ pyenv push 3.3.1
$ pyenv global $ pyenv global
2.7.3 2.7.4
3.2.3 3.2.4
3.3.0 3.3.1
$ pyenv pop $ pyenv pop
2.7.3 2.7.4
3.2.3 3.2.4
### pyenv shell ### pyenv shell
@ -368,12 +368,12 @@ prefer not to use shell integration, you may simply set the
You can specify multiple versions via `PYENV_VERSION` You can specify multiple versions via `PYENV_VERSION`
environment variable in your shell. environment variable in your shell.
$ pyenv shell pypy-1.9 2.7.3 $ pyenv shell pypy-1.9 2.7.4
$ echo $PYENV_VERSION $ echo $PYENV_VERSION
pypy-1.9:2.7.3 pypy-1.9:2.7.4
$ pyenv version $ pyenv version
pypy-1.9 (set by PYENV_VERSION environment variable) pypy-1.9 (set by PYENV_VERSION environment variable)
2.7.3 (set by PYENV_VERSION environment variable) 2.7.4 (set by PYENV_VERSION environment variable)
### pyenv versions ### pyenv versions
@ -383,8 +383,8 @@ the currently active version.
$ pyenv versions $ pyenv versions
2.5.6 2.5.6
2.6.8 2.6.8
* 2.7.3 (set by /home/yyuu/.pyenv/version) * 2.7.4 (set by /home/yyuu/.pyenv/version)
3.2.3 3.2.4
jython-2.5.3 jython-2.5.3
pypy-1.9 pypy-1.9
@ -394,7 +394,7 @@ Displays the currently active Python version, along with information on
how it was set. how it was set.
$ pyenv version $ pyenv version
2.7.3 (set by /home/yyuu/.pyenv/version) 2.7.4 (set by /home/yyuu/.pyenv/version)
### pyenv rehash ### pyenv rehash
@ -410,7 +410,7 @@ Displays the full path to the executable that pyenv will invoke when
you run the given command. you run the given command.
$ pyenv which python3.2 $ pyenv which python3.2
/home/yyuu/.pyenv/versions/3.2.3/bin/python3.2 /home/yyuu/.pyenv/versions/3.2.4/bin/python3.2
### pyenv whence ### pyenv whence
@ -418,8 +418,8 @@ Lists all Python versions with the given command installed.
$ pyenv whence 2to3 $ pyenv whence 2to3
2.6.8 2.6.8
2.7.3 2.7.4
3.2.3 3.2.4
## Development ## Development

View file

@ -0,0 +1,3 @@
install_package "Python-2.7.4" "http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tgz#592603cfaf4490a980e93ecb92bde44a"
install_package "distribute-0.6.34" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz#4576ab843a6db5100fb22a72deadf56d" python
install_package "pip-1.2.1" "http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#db8a6d8a4564d3dc7f337ebed67b1a85" python

View file

@ -0,0 +1,3 @@
install_package "Python-3.2.4" "http://www.python.org/ftp/python/3.2.4/Python-3.2.4.tgz#3af05758d0bc2b1a27249e8d622c3e91"
install_package "distribute-0.6.34" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz#4576ab843a6db5100fb22a72deadf56d" python
install_package "pip-1.2.1" "http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#db8a6d8a4564d3dc7f337ebed67b1a85" python

View file

@ -0,0 +1,3 @@
install_package "Python-3.3.1" "http://python.org/ftp/python/3.3.1/Python-3.3.1.tgz#c19bfd6ea252b61779a4f2996fb3b330"
install_package "distribute-0.6.34" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz#4576ab843a6db5100fb22a72deadf56d" python
install_package "pip-1.2.1" "http://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz#db8a6d8a4564d3dc7f337ebed67b1a85" python