Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.13 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.13 KB

virtualenv-asdf

A virtualenv Python discovery plugin using asdf

Installation

pip install virtualenv-asdf

Usage

The Python discovery mechanism can be specified by:

  • the CLI option --discovery:

    virtualenv --discovery asdf -p 3.10 testenv
  • the environment variable VIRTUALENV_DISCOVERY:

    export VIRTUALENV_DISCOVERY=asdf
    virtualenv -p 3.10 testenv
  • the config option discovery:

    [virtualenv]
    discovery = asdf
    virtualenv asdf -p 3.10 testenv

The Python version can be expressed using either 2 or 3 version segments:

  • -p 3.9
  • -p 3.9.3

In the former case, the latest version found will be used.

Limitations

Only CPython is supported at the moment.

NOTE: this package derived from virtualenv-pyenv by un.def