Browse Source

Revert "Merge pull request #1153 from cmcginty/remove-sbang"

This reverts commit 070e1c859fb2584c3dbe0a6fbe58cbc80938654e, reversing
changes made to 3faeda67bb.
pull/1337/head
Andrew Rabert 5 years ago
parent
commit
0f596d2504
32 changed files with 44 additions and 1 deletions
  1. +1
    -0
      libexec/pyenv---version
  2. +1
    -0
      libexec/pyenv-commands
  3. +1
    -0
      libexec/pyenv-completions
  4. +2
    -0
      libexec/pyenv-exec
  5. +2
    -0
      libexec/pyenv-global
  6. +2
    -0
      libexec/pyenv-help
  7. +1
    -0
      libexec/pyenv-hooks
  8. +1
    -0
      libexec/pyenv-init
  9. +2
    -0
      libexec/pyenv-local
  10. +1
    -0
      libexec/pyenv-prefix
  11. +2
    -0
      libexec/pyenv-rehash
  12. +1
    -0
      libexec/pyenv-root
  13. +1
    -0
      libexec/pyenv-sh-rehash
  14. +2
    -0
      libexec/pyenv-sh-shell
  15. +1
    -0
      libexec/pyenv-shims
  16. +1
    -0
      libexec/pyenv-version
  17. +1
    -0
      libexec/pyenv-version-file
  18. +1
    -0
      libexec/pyenv-version-file-read
  19. +1
    -0
      libexec/pyenv-version-file-write
  20. +1
    -0
      libexec/pyenv-version-name
  21. +1
    -0
      libexec/pyenv-version-origin
  22. +1
    -0
      libexec/pyenv-versions
  23. +1
    -0
      libexec/pyenv-whence
  24. +2
    -0
      libexec/pyenv-which
  25. +2
    -0
      plugins/python-build/bin/pyenv-install
  26. +2
    -0
      plugins/python-build/bin/pyenv-uninstall
  27. +1
    -0
      plugins/python-build/test/stubs/stub
  28. +2
    -0
      pyenv.d/exec/pip-rehash/conda
  29. +2
    -0
      pyenv.d/exec/pip-rehash/easy_install
  30. +2
    -0
      pyenv.d/exec/pip-rehash/pip
  31. +1
    -1
      test/init.bats
  32. +1
    -0
      test/libexec/pyenv-echo

+ 1
- 0
libexec/pyenv---version View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Display the version of pyenv # Summary: Display the version of pyenv
# #
# Displays the version number of this pyenv release, including the # Displays the version number of this pyenv release, including the

+ 1
- 0
libexec/pyenv-commands View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: List all available pyenv commands # Summary: List all available pyenv commands
# Usage: pyenv commands [--sh|--no-sh] # Usage: pyenv commands [--sh|--no-sh]

+ 1
- 0
libexec/pyenv-completions View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Usage: pyenv completions <command> [arg1 arg2...] # Usage: pyenv completions <command> [arg1 arg2...]
set -e set -e

+ 2
- 0
libexec/pyenv-exec View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Run an executable with the selected Python version # Summary: Run an executable with the selected Python version
# #
# Usage: pyenv exec <command> [arg1 arg2...] # Usage: pyenv exec <command> [arg1 arg2...]

+ 2
- 0
libexec/pyenv-global View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Set or show the global Python version # Summary: Set or show the global Python version
# #
# Usage: pyenv global <version> # Usage: pyenv global <version>

+ 2
- 0
libexec/pyenv-help View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Display help for a command # Summary: Display help for a command
# #
# Usage: pyenv help [--usage] COMMAND # Usage: pyenv help [--usage] COMMAND

+ 1
- 0
libexec/pyenv-hooks View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: List hook scripts for a given pyenv command # Summary: List hook scripts for a given pyenv command
# Usage: pyenv hooks <command> # Usage: pyenv hooks <command>

+ 1
- 0
libexec/pyenv-init View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Configure the shell environment for pyenv # Summary: Configure the shell environment for pyenv
# Usage: eval "$(pyenv init - [--no-rehash] [<shell>])" # Usage: eval "$(pyenv init - [--no-rehash] [<shell>])"

+ 2
- 0
libexec/pyenv-local View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Set or show the local application-specific Python version # Summary: Set or show the local application-specific Python version
# #
# Usage: pyenv local <version> # Usage: pyenv local <version>

+ 1
- 0
libexec/pyenv-prefix View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Display prefix for a Python version # Summary: Display prefix for a Python version
# Usage: pyenv prefix [<version>] # Usage: pyenv prefix [<version>]
# #

+ 2
- 0
libexec/pyenv-rehash View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Rehash pyenv shims (run this after installing executables) # Summary: Rehash pyenv shims (run this after installing executables)
set -e set -e
@ -61,6 +62,7 @@ fi
# serves as a locking mechanism. # serves as a locking mechanism.
create_prototype_shim() { create_prototype_shim() {
cat > "$PROTOTYPE_SHIM_PATH" <<SH cat > "$PROTOTYPE_SHIM_PATH" <<SH
#!/usr/bin/env bash
set -e set -e
[ -n "\$PYENV_DEBUG" ] && set -x [ -n "\$PYENV_DEBUG" ] && set -x

+ 1
- 0
libexec/pyenv-root View File

@ -1,2 +1,3 @@
#!/usr/bin/env bash
# Summary: Display the root directory where versions and shims are kept # Summary: Display the root directory where versions and shims are kept
echo "$PYENV_ROOT" echo "$PYENV_ROOT"

+ 1
- 0
libexec/pyenv-sh-rehash View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 2
- 0
libexec/pyenv-sh-shell View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Set or show the shell-specific Python version # Summary: Set or show the shell-specific Python version
# #
# Usage: pyenv shell <version>... # Usage: pyenv shell <version>...

+ 1
- 0
libexec/pyenv-shims View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: List existing pyenv shims # Summary: List existing pyenv shims
# Usage: pyenv shims [--short] # Usage: pyenv shims [--short]

+ 1
- 0
libexec/pyenv-version View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Show the current Python version and its origin # Summary: Show the current Python version and its origin
# #
# Shows the currently selected Python version and how it was # Shows the currently selected Python version and how it was

+ 1
- 0
libexec/pyenv-version-file View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Usage: pyenv version-file [<dir>] # Usage: pyenv version-file [<dir>]
# Summary: Detect the file that sets the current pyenv version # Summary: Detect the file that sets the current pyenv version
set -e set -e

+ 1
- 0
libexec/pyenv-version-file-read View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Usage: pyenv version-file-read <file> # Usage: pyenv version-file-read <file>
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 1
- 0
libexec/pyenv-version-file-write View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Usage: pyenv version-file-write <file> <version> # Usage: pyenv version-file-write <file> <version>
set -e set -e

+ 1
- 0
libexec/pyenv-version-name View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Show the current Python version # Summary: Show the current Python version
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 1
- 0
libexec/pyenv-version-origin View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: Explain how the current Python version is set # Summary: Explain how the current Python version is set
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 1
- 0
libexec/pyenv-versions View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: List all Python versions available to pyenv # Summary: List all Python versions available to pyenv
# Usage: pyenv versions [--bare] [--skip-aliases] # Usage: pyenv versions [--bare] [--skip-aliases]
# #

+ 1
- 0
libexec/pyenv-whence View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Summary: List all Python versions that contain the given executable # Summary: List all Python versions that contain the given executable
# Usage: pyenv whence [--path] <command> # Usage: pyenv whence [--path] <command>

+ 2
- 0
libexec/pyenv-which View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Display the full path to an executable # Summary: Display the full path to an executable
# #
# Usage: pyenv which <command> # Usage: pyenv which <command>

+ 2
- 0
plugins/python-build/bin/pyenv-install View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Install a Python version using python-build # Summary: Install a Python version using python-build
# #
# Usage: pyenv install [-f] [-kvp] <version> # Usage: pyenv install [-f] [-kvp] <version>

+ 2
- 0
plugins/python-build/bin/pyenv-uninstall View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
#
# Summary: Uninstall a specific Python version # Summary: Uninstall a specific Python version
# #
# Usage: pyenv uninstall [-f|--force] <version> # Usage: pyenv uninstall [-f|--force] <version>

+ 1
- 0
plugins/python-build/test/stubs/stub View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -e set -e
status=0 status=0

+ 2
- 0
pyenv.d/exec/pip-rehash/conda View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 2
- 0
pyenv.d/exec/pip-rehash/easy_install View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 2
- 0
pyenv.d/exec/pip-rehash/pip View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
set -e set -e
[ -n "$PYENV_DEBUG" ] && set -x [ -n "$PYENV_DEBUG" ] && set -x

+ 1
- 1
test/init.bats View File

@ -35,7 +35,7 @@ load test_helper
cd "$PYENV_TEST_DIR" cd "$PYENV_TEST_DIR"
cat > myscript.sh <<OUT cat > myscript.sh <<OUT
#!/bin/sh #!/bin/sh
eval "\$(pyenv init -)"
eval "\$(pyenv-init -)"
echo \$PYENV_SHELL echo \$PYENV_SHELL
OUT OUT
chmod +x myscript.sh chmod +x myscript.sh

+ 1
- 0
test/libexec/pyenv-echo View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Usage: pyenv echo [-F<char>] VAR # Usage: pyenv echo [-F<char>] VAR
if [[ $1 == -F* ]]; then if [[ $1 == -F* ]]; then

Loading…
Cancel
Save