Christopher Hunt
7 роки тому
committed by
GitHub
Не вдалося знайти GPG ключ що відповідає даному підпису
Ідентифікатор GPG ключа: 4AEE18F83AFDEB23
32 змінених файлів з
44 додано та
1 видалено
-
libexec/pyenv---version
-
libexec/pyenv-commands
-
libexec/pyenv-completions
-
libexec/pyenv-exec
-
libexec/pyenv-global
-
libexec/pyenv-help
-
libexec/pyenv-hooks
-
libexec/pyenv-init
-
libexec/pyenv-local
-
libexec/pyenv-prefix
-
libexec/pyenv-rehash
-
libexec/pyenv-root
-
libexec/pyenv-sh-rehash
-
libexec/pyenv-sh-shell
-
libexec/pyenv-shims
-
libexec/pyenv-version
-
libexec/pyenv-version-file
-
libexec/pyenv-version-file-read
-
libexec/pyenv-version-file-write
-
libexec/pyenv-version-name
-
libexec/pyenv-version-origin
-
libexec/pyenv-versions
-
libexec/pyenv-whence
-
libexec/pyenv-which
-
plugins/python-build/bin/pyenv-install
-
plugins/python-build/bin/pyenv-uninstall
-
plugins/python-build/test/stubs/stub
-
pyenv.d/exec/pip-rehash/conda
-
pyenv.d/exec/pip-rehash/easy_install
-
pyenv.d/exec/pip-rehash/pip
-
test/init.bats
-
test/libexec/pyenv-echo
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Display the version of pyenv |
|
|
|
# |
|
|
|
# Displays the version number of this pyenv release, including the |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: List all available pyenv commands |
|
|
|
# Usage: pyenv commands [--sh|--no-sh] |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Usage: pyenv completions <command> [arg1 arg2...] |
|
|
|
|
|
|
|
set -e |
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Run an executable with the selected Python version |
|
|
|
# |
|
|
|
# Usage: pyenv exec <command> [arg1 arg2...] |
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Set or show the global Python version |
|
|
|
# |
|
|
|
# Usage: pyenv global <version> |
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Display help for a command |
|
|
|
# |
|
|
|
# Usage: pyenv help [--usage] COMMAND |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: List hook scripts for a given pyenv command |
|
|
|
# Usage: pyenv hooks <command> |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Configure the shell environment for pyenv |
|
|
|
# Usage: eval "$(pyenv init - [--no-rehash] [<shell>])" |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Set or show the local application-specific Python version |
|
|
|
# |
|
|
|
# Usage: pyenv local <version> |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Display prefix for a Python version |
|
|
|
# Usage: pyenv prefix [<version>] |
|
|
|
# |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Rehash pyenv shims (run this after installing executables) |
|
|
|
|
|
|
|
set -e |
|
|
|
@ -61,6 +62,7 @@ fi |
|
|
|
# serves as a locking mechanism. |
|
|
|
create_prototype_shim() { |
|
|
|
cat > "$PROTOTYPE_SHIM_PATH" <<SH |
|
|
|
#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
[ -n "\$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
|
|
|
|
@ -1,2 +1,3 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Display the root directory where versions and shims are kept |
|
|
|
echo "$PYENV_ROOT" |
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Set or show the shell-specific Python version |
|
|
|
# |
|
|
|
# Usage: pyenv shell <version>... |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: List existing pyenv shims |
|
|
|
# Usage: pyenv shims [--short] |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Show the current Python version and its origin |
|
|
|
# |
|
|
|
# Shows the currently selected Python version and how it was |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Usage: pyenv version-file [<dir>] |
|
|
|
# Summary: Detect the file that sets the current pyenv version |
|
|
|
set -e |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Usage: pyenv version-file-read <file> |
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Usage: pyenv version-file-write <file> <version> |
|
|
|
|
|
|
|
set -e |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Show the current Python version |
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: Explain how the current Python version is set |
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: List all Python versions available to pyenv |
|
|
|
# Usage: pyenv versions [--bare] [--skip-aliases] |
|
|
|
# |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Summary: List all Python versions that contain the given executable |
|
|
|
# Usage: pyenv whence [--path] <command> |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Display the full path to an executable |
|
|
|
# |
|
|
|
# Usage: pyenv which <command> |
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Install a Python version using python-build |
|
|
|
# |
|
|
|
# Usage: pyenv install [-f] [-kvp] <version> |
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# |
|
|
|
# Summary: Uninstall a specific Python version |
|
|
|
# |
|
|
|
# Usage: pyenv uninstall [-f|--force] <version> |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
|
|
|
|
status=0 |
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
set -e |
|
|
|
[ -n "$PYENV_DEBUG" ] && set -x |
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ load test_helper |
|
|
|
cd "$PYENV_TEST_DIR" |
|
|
|
cat > myscript.sh <<OUT |
|
|
|
#!/bin/sh |
|
|
|
eval "\$(pyenv init -)" |
|
|
|
eval "\$(pyenv-init -)" |
|
|
|
echo \$PYENV_SHELL |
|
|
|
OUT |
|
|
|
chmod +x myscript.sh |
|
|
|
|
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
# Usage: pyenv echo [-F<char>] VAR |
|
|
|
|
|
|
|
if [[ $1 == -F* ]]; then |
|
|
|
|