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.1.tar.gz (4.7 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.1-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for virtualenv_multipython-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6c5cc6a3576559a7e642fac3f4b41381c9e27d6b3f65834468d1e49d44716789
MD5 74deab4c5a3d7a50df62e9cd743f2036
BLAKE2b-256 b83a514beba4f4b7ca2d08a171efe34faf955a74427b6c5b1f2755b132ce8c0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for virtualenv_multipython-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30d63506ed6481a74e8af8fa607f0b0ce3c0b947222bb37db6790127ba5d0acf
MD5 7c28a1ad8c26194c337b45f71c5f07d7
BLAKE2b-256 3f82da1fce9d09179f293524e7e1d8bdd3867bcd20308a6c9725d6895e03af46

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