File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 11# virtualenv-pyenv
2+
3+ A [ virtualenv] [ virtualenv ] Python discovery plugin using [ pyenv] [ pyenv ]
4+
5+ ## Installation
6+
7+ ``` shell
8+ pip install virtualenv-pyenv
9+ ```
10+
11+ ## Usage
12+
13+ The Python discovery mechanism can be specified by:
14+
15+ * the CLI option ` --discovery ` :
16+ ``` shell
17+ virtualenv --discovery pyenv -p 3.10 testenv
18+ ```
19+
20+ * the environment variable ` VIRTUALENV_DISCOVERY ` :
21+ ``` shell
22+ export VIRTUALENV_DISCOVERY=pyenv
23+ virtualenv -p 3.10 testenv
24+ ```
25+
26+ * the [ config] [ virtualenv-docs-config-file ] option ` discovery ` :
27+ ``` ini
28+ [virtualenv]
29+ discovery = pyenv
30+ ```
31+
32+ ``` shell
33+ virtualenv pyenv -p 3.10 testenv
34+ ```
35+
36+ The Python version can be expressed using either 2 or 3 version segments:
37+
38+ * ` -p 3.9 `
39+ * ` -p 3.9.3 `
40+
41+ In the former case, the latest version found will be used.
42+
43+ ## Limitations
44+
45+ Only CPython is supported at the moment.
46+
47+
48+ [ virtualenv ] : https://virtualenv.pypa.io/
49+ [ pyenv ] : https://github.com/pyenv/pyenv
50+ [ virtualenv-docs-config-file ] : https://virtualenv.pypa.io/en/latest/cli_interface.html#configuration-file
You can’t perform that action at this time.
0 commit comments