native-api
859b260764
Check for shims in path with pure Bash ( #1978 )
Closes https://github.com/pyenv/pyenv/issues/1921
пре 5 година
Anton Petrov
f81bffc95e
2.0.1
пре 5 година
Anton Petrov
1270ca6b0b
2.0.0
пре 5 година
Anton Petrov
4ce52bd333
2.0.0-rc1
пре 5 година
Ivan Pozdeev
ddf952ab2d
Allow for cases where user might've aliased some programs
The $(type -p | head -1) construct expects to always get a path, so need to ignore such aliases with -P
Closes https://github.com/pyenv/pyenv/issues/1662
пре 5 година
Ivan Pozdeev
e0d109c227
Include a Bash automated install option
пре 5 година
native-api
0d07cda969
Update install instructions for Bash and Zsh ( #1920 )
* Update install instructions for Bash and Zsh
* Synchronize README.md with `pyenv init`
* Add a ~/.bash_profile note
* Concatenate shims activation into installation for brevity
(Pyenv can't be used meaningfully without shims anyway)
Otherwise, we'd need to duplicate all the ~/.profile shenanigans in both sections
* Update based on feedback
* Proofread
пре 5 година
Fabian Homborg
0d2fb35cee
Fix fish installation instructions ( #1916 )
пре 5 година
Ivan Pozdeev
da9392fd09
Add a hint for cases when ~/.profile sources ~/.rc
Our ~/.rc logic must run after the ~/.profile one
пре 5 година
Ivan Pozdeev
13deda8875
Place full shell configuration instructions into `pyenv init`
including initial PATH and PYENV_ROOT entries.
The migration hint proved to be unclear to users without them.
пре 5 година
Ivan Pozdeev
aab562c696
Add a warning about needing to restart the entire login session
E.g. for a GUI session, ~/.profile is executed by the GUI login "shell" at its startup
so one needs to fully log out and log back in.
Before that, the change would only be seen by shells explicitly started as login shells.
пре 5 година
Ivan Pozdeev
3e3f40fefc
Warn users to add `pyenv init --path` to ~/.profile
To facilitate migration
пре 5 година
Ivan Pozdeev
7838707595
Separate startup logic into PATH and the rest
PATH manipulation should be done in ~/.profile rather than ~/.*rc since .rc can be sourced multiple times
пре 5 година
Ivan Pozdeev
5998f4f7ab
Refactoring: make logic more fit for rearrangement
With functions, we have more leeway in what to call
пре 5 година
Anton Petrov
6656066d4f
1.2.27
пре 5 година
Ville Skyttä
641916270b
feat: support (skip) commented lines in version-file
Sometimes it is convenient to be able to temporarily disable something
in a version-file. Because these files often aren't necessarily tracked
in a SCM, especially when working with virtualenvs, the SCM diffs won't
help with showing removed lines which are currently the only way to
disable something.
пре 5 година
Anton Petrov
80067632b6
1.2.26
пре 5 година
Anton Petrov
35aa7e52ce
1.2.25
пре 5 година
Ville Skyttä
61d702405d
feat(init): strip -<suffix> when autodetecting shell
For example bash-5.1, bash-static.
пре 5 година
Anton Petrov
332772abc5
1.2.24
пре 5 година
Ville Skyttä
f06fb60b1f
Make work in nounset (-u) mode
пре 5 година
Anton Petrov
f31a06dc19
Added --nosystem argument
Added --nosystem argument to skip the system environment when searching for an executable.
пре 5 година
Josh Friend
5f62ad7680
v1.2.23
пре 5 година
tuzi3040
d51999adf5
Fix 'sed: RE error: illegal byte sequence' ( #1714 )
... by unsetting `LC_ALL` and passing `LC_CTYPE=C` to `sed`.
This commit fixes issue #1454 .
пре 5 година
Ivan Pozdeev
131e44afcb
Remove the "Using script's directory as PYENV_DIR if shim is invoked with a script argument" feature
It's impossible to 100% reliably extract the script argument from the command line for all and unknown Python versions and implementations
пре 5 година
Ivan Pozdeev
a6b0a2846e
Revert "shims: handle symlinked scripts, via new PYENV_FILE_ARG"
This reverts commit 493f036928 .
# Conflicts:
# libexec/pyenv
пре 5 година
Ivan Pozdeev
00f7d6249a
Fix not printing asterisk for current version in Bash 3
пре 5 година
Ivan Pozdeev
9309050864
Use a better PS4 as recommeneded by Bash Hackers Wiki
it allows to see functions as well as lines, therefore making it possible to see the control flow
пре 5 година
Ville Skyttä
c4e556eded
versions: use associative array to hold current versions
"hyperfine pyenv-versions" before with my bash 4.4:
Time (mean ± σ): 81.7 ms ± 2.2 ms [User: 67.8 ms, System: 15.7 ms]
Range (min … max): 78.3 ms … 87.2 ms 34 runs
After:
Time (mean ± σ): 70.6 ms ± 2.4 ms [User: 55.6 ms, System: 16.9 ms]
Range (min … max): 67.9 ms … 78.9 ms 41 runs
пре 5 година
Ville Skyttä
a804887307
rehash: use associative array to hold registered shims
"hyperfine pyenv-rehash" before on my bash 4.4:
Time (mean ± σ): 172.8 ms ± 8.2 ms [User: 185.0 ms, System: 24.8 ms]
Range (min … max): 164.2 ms … 198.4 ms 15 runs
After:
Time (mean ± σ): 113.8 ms ± 2.8 ms [User: 127.1 ms, System: 26.1 ms]
Range (min … max): 108.0 ms … 117.6 ms 25 runs
пре 5 година
Harish Rajagopal
cdecf14535
Added fallback to system executable
If pyenv doesn't find an executable for the current version/virtualenv,
then search the "system" version as a fallback.
пре 5 година
Ville Skyttä
b938abdea1
rehash: preserve existing $PYENV_REHASH_TIMEOUT semantics
Try for that long no matter what the sleep step available is.
пре 5 година
Ville Skyttä
c0ea15226d
rehash: try to sleep in 0.1 sec steps when acquiring lock
пре 5 година
Yamashita, Yuu
dc70546565
v1.2.22 ( fixes #1760 )
пре 5 година
Josh Friend
806b30d6ce
v1.2.21
пре 5 година
cornfeedhobo
cadebd8e65
Search for plugins in PYENV_DIR and PYENV_ROOT ( #1697 )
пре 5 година
M. Smits
71d2e4549e
Updated documentation pyenv init for fish shell comform to readme. ( #1703 )
пре 5 година
Smiler Lee
592271b86f
Fix 'sed: RE error: illegal byte sequence' ( #1670 )
... which is caused by `realpath.dylib` containing illegal UTF-8 byte sequence, and `LC_CTYPE` won't take effect if `LC_ALL` happens to be set to something other than `C`.
This commit fixes issue pyenv/pyenv#1454 .
Ref: https://stackoverflow.com/a/23584470
пре 5 година
Ivan Pozdeev
f77c2d7eab
Detect Py2 presence as well
пре 5 година
Arcadiy Ivanov
0164e2bd59
CPython 3.9.0b4 ( #1654 )
пре 6 година
Paul Bransford
4d762bca7b
fix 'system' python to be present if 'python3' is on path but not 'python'
пре 6 година
Josh Friend
86fbc6861d
v1.2.19
пре 6 година
Josh Friend
1b6657e751
v1.2.18
пре 6 година
Brian Dowling
a8ca63fcc0
Update help docs to clarify multiple version(s) are allowed ( #1197 )
* Update help docs to clarify multiple version(s) are allowed
* Tweek version(s) help description
пре 6 година
Edwin Shin
89786b909f
pyenv-version-file-read: use POSIX character sets ( #1554 )
Fixes #623
пре 6 година
Josh Friend
3005c46643
v1.2.17
пре 6 година
adrian-the-git
7097f8204e
Remove duplicate help message ( #1525 )
The pyenv help listing offered the "commands" command twice.
пре 6 година
Phil Fernandez
1487135415
fixes sed illegal byte sequence error ( #1521 )
пре 6 година
Josh Friend
ce0be04ad4
v1.2.16
пре 6 година
Josh Friend
b5f69fe58a
v1.2.15
пре 6 година