Yamashita, Yuu
e230817496
Restored `--no-error` for compatibility with v20151103 and earlier
8 years ago
Yamashita, Yuu
6e91d75069
Stop showing message about `pyenv virtualenv-init` on activate ( #122 )
`pyenv virtualenv-init` is just an option. Always showing message about
it would be too much to do.
8 years ago
Yamashita, Yuu
6a2b77ed5b
Fix tests
8 years ago
Yamashita, Yuu
789c349570
Allow specifying python version for conda via `-p` or `--python`
8 years ago
Yamashita, Yuu
bad8dcf768
Use `conda create` to create virtualenv if the source version is a Anaconda/Miniconda
8 years ago
Yamashita, Yuu
116e133c90
Activate a virtualenv of current version if specified version is not a virtualenv
```sh
% pyenv versions
system
* miniconda3-3.16.0 (set by PYENV_VERSION environment variable)
miniconda3-3.16.0/envs/venv
% pyenv activate venv
pyenv-virtualenv: deactivate miniconda3-3.16.0
pyenv-virtualenv: activate miniconda3-3.16.0/envs/venv
```
8 years ago
Yamashita, Yuu
1edff311d5
exits as error if the virtual environment doesn't have `python` executable ( #104 )
conda's environment might not have `python` executable. If the prefix
doesn't contain `python` in it, `pyenv-which` might be ran into infinite
loop if some of `which` hooks invoke `pyenv-virtualenv-prefix`.
8 years ago
Yamashita, Yuu
aae07d1318
Deactivation before activation should not return as non-zero ( fixes #116 )
8 years ago
Yamashita, Yuu
5e92253943
Fix broken `--skip-aliases`
8 years ago
Yamashita, Yuu
0bbb12a3bf
Use glob to check if the virtualenv is inside pyenv's prefix or not
8 years ago
Yamashita, Yuu
4e9d697887
Suppress message about `virtualenv-init` if `-quiet` given ( fixes #122 )
8 years ago
Yamashita, Yuu
5f87786adf
Remove `PYENV_DEACTIVATE` ( fixes #121 )
This means that pyenv-virtualenv will not allow manual deactivation of
virtualenv if pyenv-virtualenv-init is enabled. This must be acceptable
since the activation of virtualenv is just setting of environment
variables in current implementation.
8 years ago
Yamashita, Yuu
f92a3a26c5
Add `--skip-aliases` to `pyenv virtualenvs` ( fixes #120 )
8 years ago
Yamashita, Yuu
59bc189bec
Basically `/` should not be allowed as a part of name of virtualenv
8 years ago
Yamashita, Yuu
caa5832b8a
Allow manual activation of virtualenvs inside `$(pyenv-root)/versions` ( #115 )
8 years ago
Yamashita, Yuu
83bc6a49e4
Restore variables set by `activate` script of virtualenv properly ( #150 )
The `activate` script does't export the variables of `_OLD_VIRTUAL_*`,
most the deactivation code needed to be moved to `sh-deactivate`.
8 years ago
Yamashita, Yuu
47feedc934
exits as 0 if there is some virtualenv outside from pyenv is already activated ( #114 )
8 years ago
Yamashita, Yuu
a73817eecc
Use canonical name for `VIRTUAL_ENV` as a workaround for IPython ( fixes #113 )
8 years ago
Yamashita, Yuu
0b9b19232a
Skip creating `$(pyenv root)/versions/system/envs/` directory for virtualenv from `system`
8 years ago
Yamashita, Yuu
bb623bd8bf
Prevent removing symlinks bound to different version ( #106 )
9 years ago
Yamashita, Yuu
ee18ffac9f
Change prompt after `activate` ( #52 )
9 years ago
Yamashita, Yuu
c1b9238cbe
Reject creating a virtualenv named `system` ( yyuu/pyenv#475 )
9 years ago
Yamashita, Yuu
950a742be3
Add short options
9 years ago
Yamashita, Yuu
bdd52a79cd
Revert `PYENV_DEACTIVATE` for backward compatibility
9 years ago
Yamashita, Yuu
f7d1aa7d94
Allow activating first version of virtualenv even if there are multiple versions in pyenv ( #105 )
9 years ago
Yamashita, Yuu
0fa5de07c9
fix broken tests
9 years ago
Yamashita, Yuu
017d20ad91
remove unnecessary logic from init script
9 years ago
Yamashita, Yuu
7f33ddd911
prompt should be managed by users, not by tools
9 years ago
Yamashita, Yuu
8731e9bf14
replaced `--no-error` by `--quiet`
9 years ago
Yamashita, Yuu
bf7e9ba59a
Show `activating...` messages by default
9 years ago
Yamashita, Yuu
dfd1655069
add a script to hook `source activate` for Anaconda/Miniconda ( #103 )
9 years ago
Yamashita, Yuu
a233491f2b
Remove obsolete TODO comment
9 years ago
Yamashita, Yuu
c6a705b1d9
Setup `CONDA_DEFAULT_ENV` only if `conda` executable exists
9 years ago
Yamashita, Yuu
8038659299
Create virtualenv inside `envs` directory as similar as Anaconda
9 years ago
Yamashita, Yuu
0df362e8c8
Support deletion of virtualenv created in `envs`
9 years ago
Yamashita, Yuu
64ceee5c8e
Stop using virtualenv's `activate` script ( #69 )
9 years ago
Yamashita, Yuu
2ae921c253
Treat all versions with `activate` script as a virtual environment
9 years ago
Yamashita, Yuu
72cf0e1b1b
v20151103
9 years ago
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
a242067435
Fix pyenv-virtualenv-init script for fish where command was in string and not being evaluated
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
65c74dbf2d
activate/deactivate anaconda/miniconda envs
9 years ago