Pārlūkot izejas kodu

Remove shebang lines from scripts for performance

All scripts in libexec/ (excluding pyenv) are called through pyenv,
therefore the shebang lines are not necessary. On some systems this
provides a measurable increase in performance of the shell prompt.

Related to pyenv/pyenv-virtualenv#259
pull/1153/head
Casey McGinty pirms 8 gadiem
revīziju iesūtīja Daniel Hahler
vecāks
revīzija
83e5459cfb
32 mainītis faili ar 1 papildinājumiem un 44 dzēšanām
  1. +0
    -1
      libexec/pyenv---version
  2. +0
    -1
      libexec/pyenv-commands
  3. +0
    -1
      libexec/pyenv-completions
  4. +0
    -2
      libexec/pyenv-exec
  5. +0
    -2
      libexec/pyenv-global
  6. +0
    -2
      libexec/pyenv-help
  7. +0
    -1
      libexec/pyenv-hooks
  8. +0
    -1
      libexec/pyenv-init
  9. +0
    -2
      libexec/pyenv-local
  10. +0
    -1
      libexec/pyenv-prefix
  11. +0
    -2
      libexec/pyenv-rehash
  12. +0
    -1
      libexec/pyenv-root
  13. +0
    -1
      libexec/pyenv-sh-rehash
  14. +0
    -2
      libexec/pyenv-sh-shell
  15. +0
    -1
      libexec/pyenv-shims
  16. +0
    -1
      libexec/pyenv-version
  17. +0
    -1
      libexec/pyenv-version-file
  18. +0
    -1
      libexec/pyenv-version-file-read
  19. +0
    -1
      libexec/pyenv-version-file-write
  20. +0
    -1
      libexec/pyenv-version-name
  21. +0
    -1
      libexec/pyenv-version-origin
  22. +0
    -1
      libexec/pyenv-versions
  23. +0
    -1
      libexec/pyenv-whence
  24. +0
    -2
      libexec/pyenv-which
  25. +0
    -2
      plugins/python-build/bin/pyenv-install
  26. +0
    -2
      plugins/python-build/bin/pyenv-uninstall
  27. +0
    -1
      plugins/python-build/test/stubs/stub
  28. +0
    -2
      pyenv.d/exec/pip-rehash/conda
  29. +0
    -2
      pyenv.d/exec/pip-rehash/easy_install
  30. +0
    -2
      pyenv.d/exec/pip-rehash/pip
  31. +1
    -1
      test/init.bats
  32. +0
    -1
      test/libexec/pyenv-echo

+ 0
- 1
libexec/pyenv---version Parādīt failu

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

+ 0
- 1
libexec/pyenv-commands Parādīt failu

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

+ 0
- 1
libexec/pyenv-completions Parādīt failu

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

+ 0
- 2
libexec/pyenv-exec Parādīt failu

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

+ 0
- 2
libexec/pyenv-global Parādīt failu

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

+ 0
- 2
libexec/pyenv-help Parādīt failu

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

+ 0
- 1
libexec/pyenv-hooks Parādīt failu

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

+ 0
- 1
libexec/pyenv-init Parādīt failu

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

+ 0
- 2
libexec/pyenv-local Parādīt failu

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

+ 0
- 1
libexec/pyenv-prefix Parādīt failu

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

+ 0
- 2
libexec/pyenv-rehash Parādīt failu

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# Summary: Rehash pyenv shims (run this after installing executables)
set -e
@ -62,7 +61,6 @@ 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

+ 0
- 1
libexec/pyenv-root Parādīt failu

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

+ 0
- 1
libexec/pyenv-sh-rehash Parādīt failu

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

+ 0
- 2
libexec/pyenv-sh-shell Parādīt failu

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

+ 0
- 1
libexec/pyenv-shims Parādīt failu

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

+ 0
- 1
libexec/pyenv-version Parādīt failu

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

+ 0
- 1
libexec/pyenv-version-file Parādīt failu

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

+ 0
- 1
libexec/pyenv-version-file-read Parādīt failu

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

+ 0
- 1
libexec/pyenv-version-file-write Parādīt failu

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

+ 0
- 1
libexec/pyenv-version-name Parādīt failu

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

+ 0
- 1
libexec/pyenv-version-origin Parādīt failu

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

+ 0
- 1
libexec/pyenv-versions Parādīt failu

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

+ 0
- 1
libexec/pyenv-whence Parādīt failu

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

+ 0
- 2
libexec/pyenv-which Parādīt failu

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

+ 0
- 2
plugins/python-build/bin/pyenv-install Parādīt failu

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

+ 0
- 2
plugins/python-build/bin/pyenv-uninstall Parādīt failu

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

+ 0
- 1
plugins/python-build/test/stubs/stub Parādīt failu

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

+ 0
- 2
pyenv.d/exec/pip-rehash/conda Parādīt failu

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

+ 0
- 2
pyenv.d/exec/pip-rehash/easy_install Parādīt failu

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

+ 0
- 2
pyenv.d/exec/pip-rehash/pip Parādīt failu

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

+ 1
- 1
test/init.bats Parādīt failu

@ -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

+ 0
- 1
test/libexec/pyenv-echo Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt