Daniel Hahler
f594876f31
init: zsh: prepend hook to precmd_functions
This makes sure that $VIRTUAL_ENV is handled already in other precmd
functions, especially your prompt.
9 years ago
Bartosz Janda
f657fad926
Passing return value from executed command.
9 years ago
Yamashita, Yuu
6a6947659a
v20151006
9 years ago
Yamashita, Yuu
249759aa04
add foolproof for `-p` argument.
find proper source version from pyenv if the given executable is only
basename or is a shim script.
9 years ago
Jeremy
d86fd13797
Fix test to not have quotes expected in command eval for Fish
9 years ago
Yamashita, Yuu
7b34f7234e
Fix broken test
9 years ago
Yamashita, Yuu
e535faea4d
Ignore user's site-packages on ensurepip/get-pip ( #89 )
https://www.python.org/dev/peps/pep-0370/
9 years ago
Yamashita, Yuu
90531a6a48
v20150719
9 years ago
Yamashita, Yuu
b32d357353
Add tests for conda
9 years ago
Yamashita, Yuu
cdbf7c9972
activate "root" environment of anaconda/miniconda if environment name is not given
9 years ago
Yamashita, Yuu
25395f0331
activate: look for a conda environment if given name is not a pyenv's prefix
9 years ago
Yamashita, Yuu
be6701e7b6
Fix `Error: too many arguments.` on deactivating anaconda env
9 years ago
Yamashita, Yuu
e1523811fb
fix broken test
9 years ago
Daniel Hahler
8ca45c0e0a
init: fix shell detection when invoked from a script
- fixes `ps` command to lookup parent process
- adds `assert_output_contains_not` test helper
Ref: https://github.com/yyuu/pyenv/issues/373
9 years ago
Yamashita Yuu
e261806f96
Skip installing `setuptools` explicitly with using `ez_setup.py` ( yyuu/pyenv#381 )
It will be done by `get-pip.py` and we don't have to do anything explicitly.
9 years ago
Yamashita Yuu
9a52f9fb5d
v20150526
First release after my son's birth....
9 years ago
Daniel Hahler
2571a2b973
activate: display setup instructions only with PYENV_VIRTUALENV_INIT=0
This fixes displaying the note, in case "init" has been run manually
and/or the init is not in the expected place.
It removes the unnecessary calls to "grep".
pyenv-virtualenv-init will look at `$PYENV_SHELL` now, too.
Tests have been adjusted/fixed.
9 years ago
Josh Hagins
5953ddaf64
Ignore failure of pyenv activate
When the current pyenv environment is not a virtualenv, this line
exits with a return code of 1. This is annoying for those of us
who report the last return code in our own PROMPT_COMMAND, so
ignore the output of `pyenv activate` if we're not currently using
a virtualenv.
9 years ago
Daniel Hahler
2ab9483116
Use `typeset -g` with `precmd_functions`
This makes it possible to use `eval "$(pyenv virtualenv-init -)"` from a
function.
9 years ago
Yamashita Yuu
32e5a73345
v20150119
9 years ago
Tony Wang
e04a6f88fe
fix wrong output in test in fish, refs 240a1de
"(any command)" is not supported in test in fish, we have to set a
variable and then use that
9 years ago
Tony Wang
cc7c9d22b5
fix failed tests running under fish
9 years ago
Tony Wang
240a1de6e5
fix warns for virtualenv-init corner case on fish
The situation is when in a directory containing python binary,
`pyenv prefix' will return empty (caused by `pyenv which' returning
"./python"). This change adds quotes for `test', otherwise `test' will
warn about missing argument.
9 years ago
Yamashita Yuu
191e806ba9
shell version set in `activate` should be unset in `deactivate` ( #61 )
9 years ago
Yamashita Yuu
ad0fa82329
Fix broken fish test ( #60 )
9 years ago
Yamashita Yuu
e774464ced
ignore error from `pyenv-version-name` since it might fail if there is configuration error ( yyuu/pyenv#291 )
9 years ago
Yamashita Yuu
ad644e83b5
v20141106
10 years ago
Yamashita Yuu
58e93f9e0d
Fix test which has broken by 2060c43387
10 years ago
Yamashita Yuu
a02eb0a396
Calling `create_symlinks` after `ensurepip` is unnecessary
Install script of setuptools-6.1/pip-1.5.6 will create those links if needed
10 years ago
Yamashita Yuu
1d36ef2f68
v20141012
10 years ago
Yamashita Yuu
e655abbd41
Fix broken tests ( #47 )
10 years ago
Daniel Hahler
86046fd4e8
Do not allow whitespace in VIRTUALENV_NAME
While this could work in general, it fails in the end, because
whitespace is not allowed/supported in the shebang line with the
scripts in the created virtualenv.
10 years ago
Pedro Algarvio
81736da905
Indent to 2 spaces.
10 years ago
Pedro Algarvio
7304608e0f
Adapt tests to new output
10 years ago
Yamashita Yuu
c9bcef656c
Use `.` instead of `source` to support POSIX sh
10 years ago
Yamashita Yuu
a3c86f013b
Deactivate virtualenv even if it has been activated manually
10 years ago
Yamashita Yuu
7aa5d13633
v20140705
10 years ago
Yamashita Yuu
aef2546319
Fix broken fish's `if` statement
10 years ago
Yamashita Yuu
6b4d6249a0
No need to use `eval` in fish init script
10 years ago
Yamashita Yuu
0de2cdbbc3
Should not persist `PYENV_DEACTIVATE` after failed attempt to deactivate and activate
10 years ago
Yamashita Yuu
abfda4bac9
Fix issues with manual activation of virtual environments ( #34 )
10 years ago
Yamashita Yuu
be18fd294e
Fix `virtualenv-prefix` when the version is `system`
10 years ago
Yamashita Yuu
d4ce853e94
Display information on automatic (de)?activation
10 years ago
Yamashita Yuu
58ed045796
s/QUIET/NOERROR/g
10 years ago
Yamashita Yuu
c2b5bbd19a
Fix fish syntax error at `else`
10 years ago
Yamashita Yuu
f0c400b669
Add `--quiet` option to `activate` and `deactivate`
10 years ago
Yamashita Yuu
5b3b909089
Exit as error on deactivation failures
10 years ago
Yamashita Yuu
0b5e0cf592
Unset shell version only if the `deactivate` has invoked
10 years ago
Yamashita Yuu
c09a6d3d6c
Exit as error on activation failures
10 years ago
Yamashita Yuu
08b4c94f85
Use `PYENV_DEACTIVATE` to store which virtualenv has been deactivated ( #32 )
10 years ago