virtualenv discovery plugin for multipython and tox 4
Project description
virtualenv-multipython
virtualenv discovery plugin for multipython
This plugin is intended to be installed under multipython docker image. This is done automatically during multipython release, and there seems to be no reason to install this plugin manually by anyone.
Environment names supported are all multipython tags.
This plugin allows to use multipython tags in virtualenv:
$ virtualenv --python py314t /tmp/venv
Behaviour
- Loosely follow behaviour of builtin virtualenv discovery, with some important differences:
- Try requests one by one, starting with
--try-first-with; if one matches multipython tag or is an absolute path, return it to virtualenv. - If no version was requested at all, use
sys.executable - If no request matched conditions above, fail to discover interpreter.
- In particular, command names on
PATHare not discovered.
Installation
$ pip install virtualenv-multipython
Configuration
Set multipython to be the default discovery method for virtualenv:
Option 1. Environment variable
VIRTUALENV_DISCOVERY=multipython
Option 2. Configuration file
[virtualenv]
discovery = multipython
Add these lines to one of virtualenv configuration files. Under e.g. Debian root, the file is /root/.config/virtualenv/virtualenv.ini
Changelog
- Starting from v0.5.0: makukha/multipython-plugins
- Before v0.5.0 — makukha/virtualenv-multipython
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file virtualenv_multipython-0.5.0.tar.gz.
File metadata
- Download URL: virtualenv_multipython-0.5.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcc462171ba8320a19d8ac05052b96f30fddec2be42df869581d617c4b7d9bbe
|
|
| MD5 |
09736932321f31f1fd12dfa5c48abfd3
|
|
| BLAKE2b-256 |
48175faa235eb743f30e3d893ccdceaa57c1d94e9aaa09df4a45c5f226357da9
|
File details
Details for the file virtualenv_multipython-0.5.0-py2.py3-none-any.whl.
File metadata
- Download URL: virtualenv_multipython-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29cf3751b538c7b3561ecbb62a7a615c77ee647aa9daf8b344323aaebd8bff6e
|
|
| MD5 |
f8536a1a9c7ae2013e6ea7c24bf1138d
|
|
| BLAKE2b-256 |
180bfd212bc2d020e08cb7e37fdfd0583cb08657a5ebd852764e0925ce61fe89
|