Anton Petrov
afb14d2072
Merge pull request #1814 from native-api/rm_script_dir
...
Remove the "Using script's directory as PYENV_DIR if shim is invoked with a script argument" feature
2021-03-09 14:36:12 +03:00
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
2021-02-16 23:59:08 +03:00
Ivan Pozdeev
a6b0a2846e
Revert "shims: handle symlinked scripts, via new PYENV_FILE_ARG"
...
This reverts commit 493f036928
.
# Conflicts:
# libexec/pyenv
2021-02-16 23:53:05 +03:00
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
2021-01-29 19:54:25 +02:00
Ville Skyttä
b938abdea1
rehash: preserve existing $PYENV_REHASH_TIMEOUT semantics
...
Try for that long no matter what the sleep step available is.
2021-01-28 16:00:59 +02:00
Ville Skyttä
c0ea15226d
rehash: try to sleep in 0.1 sec steps when acquiring lock
2021-01-28 16:00:59 +02:00
Andrew Rabert
0f596d2504
Revert "Merge pull request #1153 from cmcginty/remove-sbang"
...
This reverts commit 070e1c859f
, reversing
changes made to 3faeda67bb
.
2019-04-23 10:23:33 -04:00
Casey McGinty
83e5459cfb
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
2019-03-07 22:15:14 +01:00
Tomoyuki Sahara
9c1d677d23
seq(1) is not available on OpenBSD.
2018-06-01 15:11:01 +09:00
Yamashita, Yuu
7973e59473
Fix rehash test to give up sooner after lock file's presence
2018-04-24 00:38:01 +00:00
Yamashita, Yuu
b1e3f13a85
Renamed variable; s/PYENV_REHASH_LOCK_TIMEOUT/PYENV_REHASH_TIMEOUT/
2018-04-24 00:35:55 +00:00
Yamashita, Yuu
a6c15fb242
Experimental implementation to wait rehash until acquiring lock
...
For now the code is using traditional pseudo locking mechanism
based on `noclobber`.
2018-04-19 01:02:16 +00:00
Yamashita, Yuu
83f97ef2b3
Merge remote-tracking branch 'rbenv/master' into rbenv-20180402
2018-04-02 01:46:48 +00:00
Yamashita, Yuu
8da3749648
Merge remote-tracking branch 'rbenv/master' into rbenv-20151121
2015-11-21 04:21:14 +00:00
Daniel Hahler
493f036928
shims: handle symlinked scripts, via new PYENV_FILE_ARG
...
`PYENV_FILE_ARG` is used here to make use of `abs_dirname` later in
`libexec/pyenv`.
Fixes https://github.com/yyuu/pyenv/issues/404
2015-07-08 18:59:22 +02:00
Daniel Hahler
af438abeae
shims: look for python*
...
This is required for the shims to handle `#!/usr/bin/env python3` in a
shebang, just like `python` is handled currently: it will set
`PYENV_DIR` to the root of the invoked script, which is required for a
`.python-version` script to get picked up from there.
This was rejected for rbenv, where it does not make much sense
(https://github.com/sstephenson/rbenv/pull/735 ).
Ref: https://github.com/yyuu/pyenv/pull/368#issuecomment-102806837
2015-07-08 18:59:22 +02:00
Yamashita Yuu
f0e852553a
Import rbenv changes at 7e0e85bdda
2014-12-01 00:29:26 +09:00
Yamashita Yuu
8ddf8760d5
Import recent changes from rbenv 0.4.0
2014-01-02 22:45:02 +09:00
Yamashita Yuu
167ff2a198
s/Ruby/Python/g; s/RBENV/PYENV/g
2013-02-06 16:05:29 +09:00
Yamashita Yuu
fca31c4307
import trivial changes from rbenv 0.4.0
2013-01-18 19:10:35 +09:00
Yamashita Yuu
da06998457
import rbenv-help from rbenv 0.4.0
2013-01-18 19:09:56 +09:00
Yamashita Yuu
2457419b4a
created new project.
...
modified rbenv source for Python and renamed to pyenv.
2012-08-31 15:30:20 +09:00