Skip to main content

virtualenv discovery plugin for multipython and tox 4

Project description

virtualenv-multipython

virtualenv discovery plugin for multipython

license pypi python versions tested with multipython uses docsub

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 PATH are 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

virtualenv_multipython-0.5.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

virtualenv_multipython-0.5.0-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file virtualenv_multipython-0.5.0.tar.gz.

File metadata

File hashes

Hashes for virtualenv_multipython-0.5.0.tar.gz
Algorithm Hash digest
SHA256 dcc462171ba8320a19d8ac05052b96f30fddec2be42df869581d617c4b7d9bbe
MD5 09736932321f31f1fd12dfa5c48abfd3
BLAKE2b-256 48175faa235eb743f30e3d893ccdceaa57c1d94e9aaa09df4a45c5f226357da9

See more details on using hashes here.

File details

Details for the file virtualenv_multipython-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for virtualenv_multipython-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29cf3751b538c7b3561ecbb62a7a615c77ee647aa9daf8b344323aaebd8bff6e
MD5 f8536a1a9c7ae2013e6ea7c24bf1138d
BLAKE2b-256 180bfd212bc2d020e08cb7e37fdfd0583cb08657a5ebd852764e0925ce61fe89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page