Skip to main content

zc.buildout recipe to turn the entire buildout tree into a virtualenv

Project description

rjm.recipe.venv

This is a simple zc.buildout recipe that will use the virtualenv package to turn the buildout root into a sandboxed virtual python environment. It is especially useful in conjunction with gp.recipe.pip, which can then be used to install python packages into the virtualenv that has been created.

Supported Options

venv_options:

Extra options that will be used when the virtualenv command is invoked. These should match exactly what would be used on a command line.

distutils_urls:

This option can be set to a list of URLs, each of which should point to an archive (tarball, zip, etc.) of a python package which supports simple distutils installation (i.e. ‘python setup.py install’). Each of these packages will be installed into the virtualenv sandbox. This is useful for installing certain older packages that do not work with pip, such as egenix-mx-base.

Example Usage

This is a very simple buildout file that creates a virtualenv with no site packages and using distribute. It then installs egenix-mx-base using distutils, and the latest version of Pylons and all of its dependencies using pip:

[buildout]
parts =
    venv
    pip

[venv]
recipe = rjm.recipe.venv
venv_options = --no-site-packages --with-distribute
distutils_urls =
    http://downloads.egenix.com/python/egenix-mx-base-3.1.2.tar.gz

[pip]
recipe = gp.recipe.pip
virtualenv = ${buildout:directory}
install = pylons

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

rjm.recipe.venv-0.7.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file rjm.recipe.venv-0.7.tar.gz.

File metadata

  • Download URL: rjm.recipe.venv-0.7.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rjm.recipe.venv-0.7.tar.gz
Algorithm Hash digest
SHA256 d4706a74eda1f6d375cf136bed314713da14d6f017aa17c96931d7a3cfe9df0f
MD5 71ba22cf7ea0f9b59fc81bc2d6f7415e
BLAKE2b-256 74146626738a0aa67e23d57ccf205e373fcccbc091c65f231e3b84c5d300dce7

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