Skip to content

Commit 9887127

Browse files
committed
docs: update README.md
1 parent 3668038 commit 9887127

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,50 @@
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

0 commit comments

Comments
 (0)