Skip to main content

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

Project description


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


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


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 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:

parts =

recipe = rjm.recipe.venv
venv_options = --no-site-packages --with-distribute
distutils_urls =

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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page