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
65c74dbf2d
activate/deactivate anaconda/miniconda envs
9 years ago
Yamashita, Yuu
6132f4228e
*EXPERIMENTAL* a support for _envs_ created by anaconda/miniconda
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
69fee6855d
Show error message if the source version is not installed ( #83 )
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
Daniel Hahler
95fa7a35ad
shell: do not use basename, but bash
9 years ago
Daniel Hahler
6bc0253d17
minor: fix comments
9 years ago
Daniel Hahler
c184c01174
Usage: version is optional
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
Yamashita Yuu
0fc9441f09
Anaconda has `activate` script nevertheless it is not a virtual environment ( #65 )
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
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
Tony Wang
f681df6f20
fix incorrect fish syntax in pyenv-virtualenv-init
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
2060c43387
Stop buzzy errors from embeded shell functions
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
d6671249b7
Should not persist `PYENV_DEACTIVATE` after automatic deactivation ( #47 , #48 )
10 years ago
Beau Barker
79bfc9d362
When changing from a virtualenv to "system", unset PYENV_DEACTIVATE. Previously the var remained set, which made it impossible to reactivate the previous virtualenv
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
3ebb00414f
`if [ pyenv deactivate --no-error --verbose ]` is not bourne shell compatible
10 years ago
Yamashita Yuu
c9bcef656c
Use `.` instead of `source` to support POSIX sh
10 years ago
Pedro Algarvio
2662b5807c
Fix weird bash code issue which made bash complain about "then"
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